Dihgg Dihgg - 3 months ago 14
Jade Question

Jade-php - Declare a Jade variable in a jade format only

Assume we have

//- foo.jade
- var foo= "bar"


when compiling (i'm using gulp jade php) the results will be:

<?php var foo="bar" ?>


Is possible to declare a variable in a jade format only?

Answer

Ok, several days later i've figured something using the filters functions :jade

:jade
    - var foo="bar"
    p=foo

output:

<p>bar</p>
Comments