jade-php icon indicating copy to clipboard operation
jade-php copied to clipboard

Feature request: inline conditional

Open norman784 opened this issue 11 years ago • 2 comments

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.

norman784 avatar Jan 07 '14 14:01 norman784

Inline conditions are not parsed by the engine, you're right.

ronan-gloo avatar Jan 08 '14 12:01 ronan-gloo

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

norman784 avatar Jan 08 '14 19:01 norman784