%PDF- %PDF-
Direktori : /www/varak.net/wiki.varak.net/vendor/zordius/lightncandy/tests/ |
Current File : //www/varak.net/wiki.varak.net/vendor/zordius/lightncandy/tests/example_debug.php |
<?php require('src/lightncandy.php'); $template = "Hello! {{name}} is {{gender}}. Test1: {{@root.name}} Test2: {{@root.gender}} Test3: {{../test3}} Test4: {{../../test4}} Test5: {{../../.}} Test6: {{../../[test'6]}} {{#each .}} each Value: {{.}} {{/each}} {{#.}} section Value: {{.}} {{/.}} {{#if .}}IF OK!{{/if}} {{#unless .}}Unless not OK!{{/unless}} "; $php = LightnCandy::compile($template, Array( 'flags' => LightnCandy::FLAG_RENDER_DEBUG | LightnCandy::FLAG_HANDLEBARSJS )); $renderer = LightnCandy::prepare($php); error_reporting(0); echo $renderer(Array('name' => 'John'), LCRun3::DEBUG_TAGS_ANSI); ?>