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 | 1695 | 9 years ago | ||
| 2 | 1138 | 9 years ago | ||
| 2 | 4299 | 9 years ago | ||
| 1 | 3184 | 9 years ago | ||
| 3 | 1294 | 9 years ago |