marcoagner / Flask-QRcode

A concise Flask extension to easily render QR codes on Jinja2 templates using python-qrcode.
https://marcoagner.github.io/Flask-QRcode/
GNU General Public License v3.0
110 stars 30 forks source link

Pass qrcode content as arg #21

Closed krab-skunk closed 6 years ago

krab-skunk commented 6 years ago

Hi,

I would like to know if its possible to do as follow:

render_template('sample_application.html', message = message)

And on the template insert the message for the qrcode instead of hardcoding it directly on the html?

I tried many workarounds, but none of them works :/

Thanks a lot :)

krab-skunk commented 6 years ago

shame ;)

<img src="{{ qrcode(message) }}"> :)

marcoagner commented 6 years ago

No problem! Thank you for reporting.