COMPILED template engine |
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
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.
(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
(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.
https://github.com/ivantcholakov/starter...-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. |
Welcome Guest, Not a member yet? Register Sign In |