python - Best way to use Jinja2 template in Javascript? -


i'm trying ajaxify functionality of page uses jinja2 , flask. problem want entire jinja2 template rendered javascript but, isn't possible of available libraries don't support features of jinja2. what's best way solve issue?

there seems https://github.com/syrusakbary/jsjinja library now:

jsjinja lets use jinja2 templates in javascript. compile jinja2 templates javascript no restrictions.

not tried though.


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -