Skip to content

Add generator for system component "variable" #26

Closed Answered by brandonkelly
jowhannez asked this question in Ideas
Discussion options

You must be logged in to vote

You can use the twig-extension generator to generate a Twig extension which defines new global variables. I wouldn’t recommend appending additional stuff to the craft variable except for backwards compatibility purposes.

Replies: 7 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by brandonkelly
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@johanneshakonsen
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
5 participants