mardi 4 août 2015

How to pass variables to pyjade using simple_convert?

Template looks like:

template = """!!! 5
html
    head
        title Some title
...

and render with simple_convert:

html = pyjade.simple_convert(template)

But i need to use jade's if statements inside string template, and passing with .format(variable=value) doesn't work.

Aucun commentaire:

Enregistrer un commentaire