Anyone know how to call an environment variable in Grav to use in Twig? E.g:
TWIG
{% if environment == livesite.com %} do this {% else %} do that {% endif %}
Anyone know how to call an environment variable in Grav to use in Twig? E.g:
{% if environment == livesite.com %} do this {% else %} do that {% endif %}
{% if config.environment == 'livesite.com' %} do this {% else %} do that {% endif %}
ta
Log in to reply.
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 0 | 1357 | 9 years ago | ||
| 2 | 936 | 9 years ago | ||
| 2 | 4066 | 9 years ago | ||
| 1 | 2955 | 9 years ago | ||
| 3 | 1121 | 9 years ago |