I wish to pass Jade includes with local variables coming from the controller. My data is simplified for this example, of course I'm looking to achieve something more complicated.
i.e
controller:
res.render("index", {title: "Lovely"})
index.jade:
section
include list, {listTitle: title}
list.jade:
h3 #{listTitle}
but listTitle
is not passed to the include
,
In Rails we do this by assigning locals to partials , how can this be achieved in Jade?