|
3ヶ月前 | |
---|---|---|
data | 4ヶ月前 | |
modules | 6ヶ月前 | |
routers | 4ヶ月前 | |
scripts | 1年前 | |
semantic | 2年前 | |
services | 2年前 | |
static | 4ヶ月前 | |
templates | 4ヶ月前 | |
vendor | 4ヶ月前 | |
website-docs @ 1bd4238f62 | 3ヶ月前 | |
.drone.yml | 1年前 | |
.editorconfig | 1年前 | |
.eslintrc | 1年前 | |
.gitignore | 2年前 | |
.gitmodules | 2年前 | |
2fa.go | 2年前 | |
Gopkg.lock | 4ヶ月前 | |
Gopkg.toml | 1年前 | |
LICENSE | 3年前 | |
README.md | 1年前 | |
avatar.go | 2年前 | |
beatmap.go | 1年前 | |
context.go | 1年前 | |
dev.go | 4ヶ月前 | |
doc.go | 1年前 | |
errors.go | 2年前 | |
funcmap.go | 6ヶ月前 | |
gulpfile.js | 1年前 | |
helpers.go | 1年前 | |
irc.go | 2年前 | |
loadchangelog.go | 11ヶ月前 | |
localisation.go | 2年前 | |
login.go | 2年前 | |
main.go | 1年前 | |
messages.go | 3年前 | |
oauth.go | 2年前 | |
package.json | 2年前 | |
profbackground.go | 2年前 | |
profile.go | 2年前 | |
pw.go | 2年前 | |
rate_limiter.go | 3年前 | |
recovery.go | 2年前 | |
register.go | 2年前 | |
semantic.json | 1年前 | |
sessions.go | 2年前 | |
simple.go | 2年前 | |
startuato_linux.go | 2年前 | |
startuato_windows.go | 3年前 | |
templates.go | 1年前 | |
tracking.go | 2年前 | |
yarn.lock | 2年前 |
This repository has a mirror here. The original repo is still here.
The biggest flaw of hanayo are that when I set out to create it, I wanted to create a template system that:
This was not immediately evident to me, a Go beginner, but what I did there was basically make Go be PHP.
The biggest lesson I learned on how to properly do templates, was learning to use Vue. Yes, Vue can be used for the frontend and not really for server-rendered stuff, but even just learning how to do stuff with it can help you understand what a template is actually supposed to be in order to be maintainable.
The key concepts and insights for me where:
But don’t stop here. Actually making a project using Vue helps you to understand this much more easily than using mere words. Go ahead and build something, even if just to play around!