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

Get grav version from plugin or twig #3142

Closed
NicoHood opened this issue Jan 10, 2021 · 3 comments
Closed

Get grav version from plugin or twig #3142

NicoHood opened this issue Jan 10, 2021 · 3 comments

Comments

@NicoHood
Copy link
Contributor

Is there a way to read out the Grav version from a plugin or twig to support version specific features?

@rhukster
Copy link
Member

It's a constant GRAV_VERSION

@NicoHood
Copy link
Contributor Author

What about twig?

@rhukster
Copy link
Member

not available in twig directly i think, easy to make a function that does get it though.

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

Successfully merging a pull request may close this issue.

3 participants