I\'m planning to use jade templates to generate different htmls depending on if it is in development or in production. At this time, I\'m not planning to write code in node. Giv
You need to use the option -O/--obj within the Jade CLI. It accepts 2 type of values:
-O
--obj
For example:
jade -O myfile.json template.jade
or
jade --obj '{ "cache": true }' template.jade