From 9217fc6bc341059240c7d4b7f28e05717f45e9c9 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Tue, 4 Sep 2018 09:05:57 -0400 Subject: remove template-test.php --- php/template-test.php | 64 --------------------------------------------------- 1 file changed, 64 deletions(-) delete mode 100644 php/template-test.php diff --git a/php/template-test.php b/php/template-test.php deleted file mode 100644 index 01c91fd..0000000 --- a/php/template-test.php +++ /dev/null @@ -1,64 +0,0 @@ - function() { - return 'custom'; - }, - - 'custom_args' => function($v, $args) { - return join(',', array_map(function($arg) use ($v) { - return "$arg$v"; - }, $args)); - }, -)); - -# build template -$t = new Luigi\Template($template_str); - -$args = array( - 'greet' => 'hello', - 'name' => 'paul', - 'count_0' => 0, - 'count_1' => 1, - 'count_10' => 10, -); - -# print results -echo $t->run($args); - -# test static invocation -echo Luigi\Template::run_once($template_str, $args); -- cgit v1.2.3