3 ms·
Basically, on server side, I have templates like this: users.page.tmpl (in Golang): {{template "admin" .}} {{define "title"}}Users{{end}} {{defi
by codegeek 7y ago
Basically, on server side, I have templates like this:
users.page.tmpl (in Golang):
{{template "admin" .}}
{{define "title"}}Users{{end}}
{{define "main"}}
<users></users>
{{end}}
Then I have a Users.vue that does the heavy lifting with API calls on loading existing data when component mounts etc.
Using this, I can use server side routing as needed and no need for client side routers or SPA etc.