kenjis / codeigniter-ss-twig

A Simple and Secure Twig integration for CodeIgniter 3.x and 4.x
MIT License
168 stars 46 forks source link

How to use .html instead of .twig... #30

Closed zigmoo closed 6 years ago

zigmoo commented 7 years ago

... for a template file extension?

Thanks,

Jason

kenjis commented 7 years ago

See https://github.com/kenjis/codeigniter-ss-twig/blob/master/libraries/Twig.php#L173.

You can extend the Twig class like this: https://github.com/kenjis/codeigniter-ss-twig/pull/23#issuecomment-277152999