|
hace 3 meses | |
---|---|---|
data | hace 4 meses | |
modules | hace 6 meses | |
routers | hace 4 meses | |
scripts | hace 1 año | |
semantic | hace 2 años | |
services | hace 2 años | |
static | hace 4 meses | |
templates | hace 4 meses | |
vendor | hace 4 meses | |
website-docs @ 1bd4238f62 | hace 3 meses | |
.drone.yml | hace 1 año | |
.editorconfig | hace 1 año | |
.eslintrc | hace 1 año | |
.gitignore | hace 2 años | |
.gitmodules | hace 2 años | |
2fa.go | hace 2 años | |
Gopkg.lock | hace 4 meses | |
Gopkg.toml | hace 1 año | |
LICENSE | hace 3 años | |
README.md | hace 1 año | |
avatar.go | hace 2 años | |
beatmap.go | hace 1 año | |
context.go | hace 1 año | |
dev.go | hace 4 meses | |
doc.go | hace 1 año | |
errors.go | hace 2 años | |
funcmap.go | hace 7 meses | |
gulpfile.js | hace 1 año | |
helpers.go | hace 1 año | |
irc.go | hace 2 años | |
loadchangelog.go | hace 11 meses | |
localisation.go | hace 2 años | |
login.go | hace 2 años | |
main.go | hace 1 año | |
messages.go | hace 3 años | |
oauth.go | hace 2 años | |
package.json | hace 2 años | |
profbackground.go | hace 2 años | |
profile.go | hace 2 años | |
pw.go | hace 2 años | |
rate_limiter.go | hace 3 años | |
recovery.go | hace 2 años | |
register.go | hace 2 años | |
semantic.json | hace 1 año | |
sessions.go | hace 2 años | |
simple.go | hace 2 años | |
startuato_linux.go | hace 2 años | |
startuato_windows.go | hace 3 años | |
templates.go | hace 1 año | |
tracking.go | hace 2 años | |
yarn.lock | hace 2 años |
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!