R
R
retyui2015-11-20 16:05:54
JavaScript
retyui, 2015-11-20 16:05:54

How do I pass a variable to the include directive of the Jade template engine?

Here is an example:

// Critical CSS
  -var url= '../../assets/css/cri/'+thisFile.name+'min.css'
  style
    include url

And of course the compiler treats url as text

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kravchenko, 2015-11-20
@mydearfriend

jade does not support dynamic includes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question