Skip to content
Christian Münch edited this page Jun 15, 2013 · 10 revisions

Twig Support

n98-magerun offers Twig support for i.e. code generation of new new modules. To render Twig templates we offer a twig console helper. See Helpers for more informations.

All Twig templates which are bundled inside the .phar file can be found in the folder "res/twig". You can define your own Twig templates by providing a Twig base folder in your ~/.n98-magerun.yaml (for other configs options see Config).

Define a baseDir:

twig:
  baseDirs:
    - path/to/my/twig/templates
Clone this wiki locally