jnjxp / phender
CLI php templates
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/jnjxp/phender
This package is auto-updated.
Last update: 2025-09-27 16:10:23 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.