Re:Creating a Javascript Templating Engine
by kqueue on Sunday September 11, 2011 @11:36PM
(#2985728)
It's missing namespaces, inheritance, escaping, include tags, or at least that's what I expect from a templating engine
[ Parent
| on HN ]
Re:Creating a Javascript Templating Engine
by colinsidoti on Sunday September 11, 2011 @11:59PM
(#2985783)
Yea there's a lot more to it, I'm looking at this as the fundamentals. If I can't make the fundamentals enjoyable nobody will use the rest of it.
Includes are kinda rough in javascript because they require a separate http request, and would get out of hand if they're used as frequently as they are in server side templating. I need to implement some type of front-end caching, but need a way to distinguish which templates are in memory and which require a request. Thoughts are appreciated.