lundi 2 mars 2015

Include Jade template with Config Variables

So my plan is to have a common config.jade file that contains variables that are used in a number of templates. Such as API keys and their ilk.


My setup so far.


config.jade



- var GREETING = "HOWDY!"


template.jade



includes ./config
h1 #{GREETING}


All I get is a blank <h1>. What gives? Shouldn't this work?


Aucun commentaire:

Enregistrer un commentaire