|
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 | 7 月之前 | |
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!