were you looking at adding support for Smarty in this? Or how hard would be be to add support for Smarty?
Not anything I had considered. Template is currently only a compliment and interface to CI, so it can do only what CI can do at a low level. I also don’t particularly like or use templating languages like Smarty, and I only interfaced with the Template Parser class because it was dead easy to do. If you point me at a good Smarty parser and propose an API for it within Template ($this->template->write_smarty() maybe?), I’d be more than happy to implement it.
Alternatively, you can just parse Smarty separately from Template and write the results with Template:
$text = parse_smarty('smarty_file.php', $data);
$this->template->write('content', $text);
Your master template would still need to be PHP (couldn’t even be Template Parser syntax.. something I will address in the next release)
If I do choose to use your library, it will be used for a commercial project that I have been planning to make for some time now. Are you fine with that?
The CodeIgniter License prohibits Template from being licensed on its own (because it relies on the CI codebase). So, you are only bound by the CodeIgniter license when using Template. Have at it.
