dust-php
dust-php copied to clipboard
Powerful PHP templating engine based off of Dust JS
I have basically abandoned this project since I no longer use PHP regularly. If anyone wants to fork it (or just build a different dust-php project), please do. Let me...
In my case, my class overloads __isset and has a method, which when referenced as a property uses __get to resolve. I believe this covers any cases where a class...
Removed hard coded ".dust" extension and updated constructor with a third "options" parameter to set what the file extension is. Also opens the door for further configuration in the future.
Plus unit tests
How to install this project without Composer? Composer is so much loaded with bugs, using composer is perfect way to smash any project... See this: https://github.com/composer/composer/issues
I happened to use the word "join" in some text that I was passing to `renderTemplate()`. This resulted in the following error: ``` Warning: join(): Invalid arguments passed in /path/to/vendor/dust-php/dust-php/src/Dust/Evaluate/Evaluator.php...
The exception "Unable to find helper" does not specify which helper cannot be found.
the following produces: $template = $dust->compile('Title:{title}'); $dust->renderTemplate($template, array('title' => 'current')); 'Title: Dust\Evaluate\Evaluator' I suppose that's on purpose, but it differs from the dust.js version Otherwise thanks for your port to...
According to the docs, filters are created as callable functions ``` php $dust->filters['striptags'] = function ($value) { //not a string, nothing to do if (!is_string($value)) { return $value; } //otherwise...
Hello! I do not understand how i can use list as param in helper? So i have some helper ex: ``` $this->_dust->helpers['print_r'] = function... ~~template.dust~~ {@print_r dump=... /} ``` How...