Skip to content
Unknown's avatar

Daniel Velasco (notes?)

  • Inicio

Tag: jinja

jinja variables check

Check if variable is defined and not empty:

{% if variable is defined and variable|length %}
    variable is defined and not empty
{% else %}
    variable is not defined or empty
{% endif %}
https://www.shellhacks.com/jinja2-check-if-variable-empty-exists-defined-true/
dvelben Uncategorized Leave a comment March 3, 2023 1 Minute

jinja filters

Great link https://ttl255.com/jinja2-tutorial-part-4-template-filters/amp/.

dvelben Uncategorized Leave a comment March 1, 2023March 1, 2023 1 Minute
Blog at WordPress.com.

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use. To find out more, including how to control cookies, see here: Cookie Policy.

Accept
365
  • Subscribe Subscribed
    • Daniel Velasco (notes?)
    • Already have a WordPress.com account? Log in now.
    • Daniel Velasco (notes?)
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar