![]() |
COMPILED template engine - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forumdisplay.php?fid=29) +--- Thread: COMPILED template engine (/showthread.php?tid=76769) |
COMPILED template engine - Ceo - 06-18-2020 I think it would be a good idea for CI4 to come with a COMPILED template engine like Smarty or Twig I know this idea has been brought up before and rejected.From what Ive gathered, the main reason CI4 decided not to use a separate template engine was so as not to sacrifice performance and ease-of-use. Here are some reasons I believe this is a good idea
Also, if this idea is accepted, I will help to implement it RE: COMPILED template engine - jreklund - 06-18-2020 Hi Ceo, If you wan't to build a module/plugin for CI4. Go for it! You don't need an approval from someone, only if it's being bundled with the system itself. As long as you make it into a Composer package, it will be easy for everyone to install and update. RE: COMPILED template engine - dave friend - 06-18-2020 You might find this thread interesting. RE: COMPILED template engine - Ceo - 06-20-2020 (06-18-2020, 06:32 PM)dave friend Wrote: You might find this thread interesting.Yeah thanks.Ive seen that thread before.Before I posted my thread.That was why I decided to explain why it is a good idea RE: COMPILED template engine - dave friend - 06-21-2020 (06-20-2020, 08:07 AM)Ceo Wrote:(06-18-2020, 06:32 PM)dave friend Wrote: You might find this thread interesting.Yeah thanks.Ive seen that thread before.Before I posted my thread.That was why I decided to explain why it is a good idea I tend to agree with Jim's statement that "There is no single templating engine that would satisfy everyone" However, I'm pretty sure if you developed and made available a wrapper for one or more compiled template systems you would find an audience. Make them known by posting links to the repo and/or Packagist page. RE: COMPILED template engine - ivantcholakov - 06-21-2020 https://github.com/ivantcholakov/starter-public-edition-5 I am working on a more general way, but I am at a too early stage, unfortunately I altered some system files. The idea is a driver manager to detect/choose what template engine should be applied. Currently I have Twig (sort of working) and Markdown (which is a parser, actually), more maybe will come. If you want to make a simpler integration of Twig for your purposes, feel free to grab code and to adapt it. P.S.: A Composer package at this moment seems to me diffcult to be made, I don't intend to make one. |