Cms: [Feature Request] Add `devMode` global variable in Twig

Created on 24 Mar 2019  路  1Comment  路  Source: craftcms/cms

I know we can already get it with craft.app.config.general.devMode, but that is a little verbose for something that I think is used pretty regularly. I suggest adding a devMode global variable for convenience, just like we have currentUser, currentSite, and more.

Most helpful comment

Easy enough! Added for the next release.

>All comments

Easy enough! Added for the next release.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lukebailey picture lukebailey  路  3Comments

mattstein picture mattstein  路  3Comments

leigeber picture leigeber  路  3Comments

angrybrad picture angrybrad  路  3Comments

davist11 picture davist11  路  3Comments