Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Add devMode global variable in Twig #4038

Closed
benface opened this issue Mar 24, 2019 · 1 comment
Closed

[Feature Request] Add devMode global variable in Twig #4038

benface opened this issue Mar 24, 2019 · 1 comment

Comments

@benface
Copy link
Contributor

benface commented Mar 24, 2019

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.

@brandonkelly
Copy link
Member

Easy enough! Added for the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants