jnjxp / phender
CLI php templates
0.1.0
2020-09-27 05:24 UTC
This package is auto-updated.
Last update: 2026-02-27 17:12:48 UTC
README
Quick and dirty cli php template rendering.
Usage
See example directory...
$ ./bin/phender \
-i articles:./example/article-data.php \
-v "site:My Site" \
-h ./example/helpers.php \
./example/template/articles.phtml \
./example/template/layout.phtml > articles.html
-i/--include VAR:PATHsetsVARto value returned by includingPATH-v/--var VAR:VALUEsetsVARtoVALUE-h/--helpers PATHsets helpers to value returned by includingPATH. Should return an array of callables.