Re:Underscore.py / a python port of underscore.js
by sontek on Sunday September 09, 2012 @09:48AM
(#4495764)
I think the biggest benefit of this is having the template language ported to python so you can use the same templates server side or client side.
[ Parent
| on HN ]
Re:Underscore.py / a python port of underscore.js
by apendleton on Sunday September 09, 2012 @01:11PM
(#4496271)
This template language is only superficially the same, but the code between the <% and %> would need to be python in this version, not JS, so you can't actually share anything. You would need to combine something like this with a JS-to-Python transpiler for that to work.