|
|
|
|
|
by ahoge
5029 days ago
|
|
>Thinking about this leaves me asking: why don't we just send the javascript template function to the client instead of doing all the template parsing/compiling on the client? You can do this with Handlebars. I use a Grunt task to pre-compile all templates and then I just bundle them with the much smaller (it adds about 1kb or so) "vm" version of Handlebars. Locally, I use the full version of Handlebars and regular non-compiled templates. |
|