bh-php
bh-php copied to clipboard
PHP port of https://github.com/bem/bh. It's cool thing but better use this:
why `$bh->apply([ 'block' => 'button' ]);` doesn't output any html i have to use `echo($bh->apply([ 'block' => 'button' ]));` in order to get it
Может быть типизация добавит производительности шаблонизатору. Сам php 7 должен добавть как минимум двойной прирост, а если использовать типизацию еще и памяти будем меньше использовать. Ну и скорее всего типизация...
it would be nice to have some form of demo code which can be directly executed on download.
Need to add an ability to fail on js code and skip comments parsing
These object we need for passing them thru tParam, applying map, concat, etc. for arrays, etc.
Just for prettified json_encode on nodes.
Look at: - https://github.com/denji/php-tpl-engine-bench - https://github.com/wrakky/php-template-engine-benchmarks - https://github.com/akadan47/php_template_engines_benchmark Don't forget about http://laravel.com/docs/4.2/templates