We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Found by @bartaz http://flask.pocoo.org/docs/1.0/api/#flask.Markup
The text was updated successfully, but these errors were encountered:
@bartaz do you have more info on this?
Sorry, something went wrong.
Is this required somewhere? is this an actual issue or is it just to share this tool?
I think it was a suggestion on how to make it easier to use.
Currently image_template returns string, which has to be marked safe in the flask template (as mentioned in README):
image_template
{{ image( …. ) | safe }}
Using Markup class can let jinja template know that this is safe markup, so it can be inserted direcly without safe filter.
Markup
safe
We use it in Vanilla as well: https://github.com/canonical-web-and-design/vanilla-framework/blob/81202f14aa2f781d52344470de1092ff0ce24677/webapp/app.py#L177-L184
No branches or pull requests
Found by @bartaz http://flask.pocoo.org/docs/1.0/api/#flask.Markup
The text was updated successfully, but these errors were encountered: