Skip to content

Instantly share code, notes, and snippets.

@exussum12
Created August 19, 2020 19:55
Show Gist options
  • Save exussum12/0d0454c9e675f9aaddae61e5cfd8d49a to your computer and use it in GitHub Desktop.
Save exussum12/0d0454c9e675f9aaddae61e5cfd8d49a to your computer and use it in GitHub Desktop.
{% set key = 'something' %}
{% set variable = 'something else' %}
// What I expect is the value of 'something' to be passed, NULL is passed
{{ variable | custom_filter(key) }}
// This passes 'key'
{{ variable | custom_filter('key') }}
// outputs 'something' correctly
{{ key }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment