This commit is contained in:
Ryan McGrath 2011-06-23 03:09:30 +09:00
parent 080acb34d4
commit 6e3e98efbf

View file

@ -204,7 +204,7 @@
* @returns String, parsed/replaced template.
*/
render: function(template, context) {
for(x in context) template = template.replace(new RegExp('{{' + x + '}}', 'g'), context[x].replace(/</g, '&lt;').replace(/>/, '&gt;'));
for(x in context) template = template.replace(new RegExp('{{' + x + '}}', 'g'), context[x]);
return template;
}
};