Created
June 30, 2012 00:47
-
-
Save gigafied/3021618 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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