-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 - provide searchpaths argument #5971
Comments
See comment in PR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
When running
drush twigc
in drush 12, it will compile templates for all modules and all themes that exist in filesystem, without taking application setup into account, and without checking if the modules/themes are actually installed or not. It would be nice to have a quick way to decide which directories should be processed.Describe the solution you'd like
Leave default functionality as it is, but allow to override
$searchpaths
parameters, so we can decide which directories we want to compile. Existing example is already available intwig:unused
command.Describe alternatives you've considered
Create custom drush command I guess.
Additional context
I simply would like to compile templates only for some selected directories, not for all modules and themes that are available in the filesystem. I believe leaving default command behavior as it is + adding optional argument will be the quickest way to achieve this.
The text was updated successfully, but these errors were encountered: