jade-php
jade-php copied to clipboard
Feature request: inline conditional
I have in my template something like
li(class="#{current_page=='dashboard'?'active':''}")
And throws Expecting a variable name got: ='dashboard'?'active':'' (0)
, but according to this question seems to be possible on jade-js.
Inline conditions are not parsed by the engine, you're right.
yeah, let me know if it will be supported and / or when is supported. Or light me where need to be done the patch to make it work...
Regards