lundi 28 novembre 2016

Flask, get value from checkbox and pass the result to another template

I am using Weasyprint, to display some jinja templates in a Flask Web App. I have this json.

value=["1","2","3","4"]

I have to pass 'value' to another jinja template in an if loop.


Liquid error: This liquid context does not allow includes.


But this shows the error,

TemplateSyntaxError: expected token ')', got '='

I thought I had to convert json to int in order to make the if loop work.

Aucun commentaire:

Enregistrer un commentaire