-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
value=current wrongly replaced #2
Comments
I will look into this at some point. The 5.4 requirement is explained in issue #1. I am likely going to come back to this project and rewrite it all in native PHP but lately I have not put any effort into this project. |
I've adapted the generated PHP-Code, so that it works with 5.3. It was quite easy. |
Other values causing issues: link, unlink Can this be hack-fixed in some way until you update it with a better solution? (So that parameters always remain parameters) Thanks a lot, btw! |
I use php 5.5 and i have the sаme problem. |
I've found a solution for this problem: Dust/Evaluate/Evaluator.php:public function normalizeResolved(Context $ctx, $resolved, Chunk $chunk, Ast\Section $section = null) {
$handledSpecial = true;
while ($handledSpecial) {
if (is_callable($resolved) && !is_string($resolved)) {
... |
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 php. I would really like to see a port to PHP 5.3
especially because the code really only uses the array-initialization of PHP 5.4.
The text was updated successfully, but these errors were encountered: