Ask HN: Can anyone rec a simple templating language implemented in py and js?
1–5 of 5 posts
Re: Ask HN: Can anyone rec a simple templating language implemented in py and js?
#2I haven't used it in production, but I've found it interesting nonetheless.
Re: Ask HN: Can anyone rec a simple templating language implemented in py and js?
#3For Python: http://github.com/defunkt/pystache
For Javascript: http://github.com/janl/mustache.js
Syntax docs: http://mustache.github.com/mustache.5.html
Re: Ask HN: Can anyone rec a simple templating language implemented in py and js?
#4This might be worth looking into: http://beebole.com/pure/ I haven't used it in production, but I've found it interesting nonetheless.
As a result the JS code is live at rendering time and not stringified, allowing to pass functions as parameters and closures.
As the authors of the lib, we use it in production and are very satisfied of the speed. Some prominent newspapers here in Belgium are using it as well for some parts of their sites.
Thanks for the link.
Re: Ask HN: Can anyone rec a simple templating language implemented in py and js?
#5Mustache: http://mustache.github.com/ For Python: http://github.com/defunkt/pystache For Javascript: http://github.com/janl/mustache.js Syntax docs: http://mustache.github.com/mustache.5.html