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