Closed mcoenca closed 7 years ago
Hi, thanks for the report, with the refactorization of the project coming and the drop of obsolete stuff, I hope such tricky bugs will go away.
Hi, there is a new option now available to use the native pugjs engine (as an alternative if you still have blocking bugs with the PHP engine):
$pug = new Pug(array(
'pugjs' => true
));
echo $pug->render('
mixin paragraph(text)
p=text
block paragraphs
+paragraph('yolo')
');
This is a pure wrapper solution with no PHP support in templates (all run with node.js).
You can update to 3.0.0-alpha2
(witouht pugsjs
option), it should be fixed. Please don't hesitate to test the new pug-php 3 and give us your feedback.
I don't know what's the root cause, but
works
but
produces an error in
MixinVisitor.php Nodes\Mixin\MixinVisitor\parseMixinArguments line 21
:$arguments = ['0' => 'yolo']
and not$arguments = 'yolo'
as expected and it makes the call toexplode(',' $arguments)
well ... explode ;)Thanks !