Final
This commit is contained in:
parent
080acb34d4
commit
6e3e98efbf
1 changed files with 1 additions and 1 deletions
|
|
@ -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, '<').replace(/>/, '>'));
|
||||
for(x in context) template = template.replace(new RegExp('{{' + x + '}}', 'g'), context[x]);
|
||||
return template;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Reference in a new issue