Skip to content

Instantly share code, notes, and snippets.

@gigafied
Created June 30, 2012 00:47
Show Gist options
  • Save gigafied/3021618 to your computer and use it in GitHub Desktop.
Save gigafied/3021618 to your computer and use it in GitHub Desktop.
example : function(req, res){
var data = {
foo : "foo",
bar : "bar",
foobar : "foobar"
};
res.render('example', {data: data});
}
----------
<h1>{{data.foo}}</h1>
{% include 'list.html' with data %}
example : function(req, res){
var data = {
foo : "foo",
bar : "bar",
foobar : "foobar"
};
res.render('example', data);
}
----------
<h1>{{foo}}</h1>
{% include 'list.html' with * %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment