Skip to content

Instantly share code, notes, and snippets.

@mcint
Created December 6, 2019 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcint/3de07d8a2bebd6111c4eae0b632a5383 to your computer and use it in GitHub Desktop.
Save mcint/3de07d8a2bebd6111c4eae0b632a5383 to your computer and use it in GitHub Desktop.
Jinja template testing one-liner
# pip3 install fluentpy jinja2
python3 -m fluentpy '_.lib.jinja2.Template("""asdf\n{% if "qwer" in lst %}rewq{% endif %}\nfdsa""").render({"lst":["qwer"]}).print()'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment