News for hackers. Stuff that matters.
Re:Ask HN: What tech stack would you choose for building you... by brailsafe on Monday December 16, 2019 @08:46PM (#21809697)
Mind expanding on that last bit? I'm working with a fairly convoluted Flask/Pylons based framework which I'd love to use Vue in but don't want to lose server rendering. Are you just piecing small components together that individually call apis or what's your setup?
Re:Ask HN: What tech stack would you choose for building you... by codegeek on Tuesday December 17, 2019 @10:54AM (#21814732)
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.