Plenty Parser (Driver Based Template Library, Supports Smarty and Twig Rendering) |
[eluser]Vheissu[/eluser]
I'm at it again. I've developed a driver based parser library using Codeigniter drivers. It comes with a Smarty and Twig driver and I've tested it and everything works as it should. There's a readme on the repo, but it's not that hard if you look at the code though. Get it from the Github repo here: https://github.com/Vheissu/Plenty-Parser Features: * Driver based * Comes with a Smarty and Twig drivers to render your templates * Does not override in-built view or parser functionality. * So easy to use * Requires little configuration to get it working, even a beginner Codeigniter developer could use this Coming soon: * More drivers * A lightweight theming library to work side-by-side with Plenty Parser. * Examples * Documentation Default usage: In your controller you load the drivers $this->load->driver('pp'); without any configuration you will now be able to render templates via, $this->pp->parse('templatename', $data); If you want to use additional drivers without having to set it as a default driver you can go $this->pp->drivername->parse('templatename', $data); so for Twig you would go: $this->pp->twig->parse('templatename', $data); |
Messages In This Thread |
Plenty Parser (Driver Based Template Library, Supports Smarty and Twig Rendering) - by El Forum - 04-18-2011, 06:21 AM
Plenty Parser (Driver Based Template Library, Supports Smarty and Twig Rendering) - by El Forum - 04-19-2011, 05:42 PM
Plenty Parser (Driver Based Template Library, Supports Smarty and Twig Rendering) - by El Forum - 06-23-2011, 06:32 AM
Plenty Parser (Driver Based Template Library, Supports Smarty and Twig Rendering) - by El Forum - 03-01-2012, 09:12 PM
|