werdnum / simple-lightncandy
No-nonsense templating with lightncandy
Installs: 281
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/werdnum/simple-lightncandy
Requires
- zordius/lightncandy: ~0.20
This package is not auto-updated.
Last update: 2025-10-11 23:11:38 UTC
README
This is a simple, no-nonsense class that allows you to get started using LightnCandy for your templating needs.
Example use:
$templating = new SimpleLightNCandy( __DIR__ . "/templates" ); $templating->addHelper( 'foo', function() { return "foo"; } ) $templating->addBlockHelper( 'fooBlock', function() { return "fooblock"; } ); print $templating->renderTemplate( 'foo_template' );
If you want to do anything fancy (for example, change the compile options), then you can subclass it.
It's designed to be installed using Composer:
composer require werdnum/simple-lightncandy:~0.1