Closed elquimista closed 8 years ago
Reporting variadics bug here:
mixin post-list(...posts) each $post in $posts header= $post->title article= $post->content +post-list($post1, $post2, $post3, $post4)
The above jade code throws php error when compiled. In fact, I see the unwanted semicolon in the following:
<?php $__args = isset($__args) ? $__args : [];?> <?php $__mixins = [];?> <?php $__mixins['post-list'] = function(array $__arguments) use($__args, $__mixins) { static $__defaults = ['posts' => array_slice($__arguments, 0);]; $__arguments = array_replace($__defaults, $__arguments); $__args = array_replace($__args, $__arguments); extract($__args); ?> ...
Okay, I just wanted to release 1.4.0, I'll wait until I fixed that one :)
Please update to 1.4.0 and tell me if it's fixed please :)
https://github.com/Talesoft/tale-jade/releases/tag/1.4.0
Thanks. Variadics now works okay
Reporting variadics bug here:
The above jade code throws php error when compiled. In fact, I see the unwanted semicolon in the following: