Example of configuring Flask + AngularJS + PyJade (or other alternative to Jinja)

697 Views Asked by At

I am new to Flask and building a web app that uses Flask and AngularJS. My understanding is that the static directory is the place to store AngularJS files like javascript and templates.

I wonder if there is a stable alternative to Html/Jinja that I can use for templates. And if there is, how can I enable it to work with template files inside the static directory?

I was looking to PyJade but didn't get how to get it working with the web assets pipeline.

Would appreciate any example or recommendation.

2

There are 2 best solutions below

0
On

You could use Mako. See here how to install and use it. Also you could use Genshi.

2
On

Hi @user3745936 I'm Syrus, creator of pyjade. What is the code you are trying to use?