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

[twig:compile] Compile all twig template files #1525

Open
itsdarrylnorris opened this issue Dec 18, 2015 · 0 comments
Open

[twig:compile] Compile all twig template files #1525

itsdarrylnorris opened this issue Dec 18, 2015 · 0 comments

Comments

@itsdarrylnorris
Copy link
Contributor

Problem / Motivation

Some sites want to compile Twig (and container) on staging and deploy to production with production being readonly PHP wise. We need a twig compiler for them.

This is the same functionality as drush twig-compile in Drush.

There is some plan on adding this functionality into core, however, this is been postpone. https://www.drupal.org/node/2308215

Solution

We need a command that compiles all twig templates.

mglaman added a commit to mglaman/DrupalConsole that referenced this issue Jan 19, 2016
Adds a twig:compile command as mentioned in issue hechoendrupal#1525. Loads the registry for configured default and admin theme, then processes the theme hook through the theme manager service.
mglaman added a commit to mglaman/DrupalConsole that referenced this issue Feb 10, 2016
Adds a twig:compile command as mentioned in issue hechoendrupal#1525. Loads the registry for configured default and admin theme, then processes the theme hook through the theme manager service.
mglaman added a commit to mglaman/DrupalConsole that referenced this issue Feb 10, 2016
Adds a twig:compile command as mentioned in issue hechoendrupal#1525. Loads the registry for configured default and admin theme, then processes the theme hook through the theme manager service.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant