Skip to content

Commit

Permalink
[fix] Stringify things so they are "save" to be used in templates
Browse files Browse the repository at this point in the history
  • Loading branch information
3rd-Eden committed Mar 5, 2015
1 parent b5fdb74 commit a5a2fc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -935,8 +935,8 @@ Pagelet.readable('render', function render(options, fn) {

fn.call(context, undefined, framework.get('fragment', {
template: content.replace(/<!--(.|\s)*?-->/, ''),
name: pagelet.name,
id: pagelet.id,
name: JSON.stringify(pagelet.name),
id: JSON.stringify(pagelet.id),
data: data
}));

Expand Down

0 comments on commit a5a2fc6

Please sign in to comment.