|
|
|
Ask HN: Can anyone rec a simple templating language implemented in py and js?
|
|
2 points
by kortina
5856 days ago
|
|
The goal is to be able to present json data as html/ui, and do the rendering both on the server or client side. Most of the time the server app will generate the html when the page first loads, but when a list gets updated via user interaction with javascript, I don't want to have custom javascript duplicating the rendering that happens in my python templates. I have been looking at JSON-template (http://bit.ly/aO27UM) but would love to know if anyone has any recs. Also looked at Google Closure templates, but they are implemented in server side java, not python. Anyone have any good solutions they recommend? |
|
For Python: http://github.com/defunkt/pystache
For Javascript: http://github.com/janl/mustache.js
Syntax docs: http://mustache.github.com/mustache.5.html