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 | 2590 | 9 years ago | ||
| 2 | 1705 | 9 years ago | ||
| 2 | 4997 | 9 years ago | ||
| 1 | 3827 | 9 years ago | ||
| 3 | 1810 | 9 years ago |