Tomas Votruba has a new post to his site about an update that's been made on Statie, a static site generation tool, to support Twig templates natively.
Statie supports YAML and Symfony Dependency Injection for some time. But you wanted more! You wanted Twig. Sculpin and all the other PHP generators have it.
So there you go! Enjoy.
He shares the three steps needed to set up a sample Twig template and have it rendered as easily as the normal Statie templates:
- Prepare Layout _layouts/default.twig
- Create Template contact.twig
- Enable Twig
Template contents and configuration change examples are included as well as instructions on how to update to this latest (v5.4) version. He includes tips on the naming and locations of the template files as well as a mention of his package to help translate from Latte to Twig templates.