meteorhacks / meteor-ssr

Server Side Rendering for Meteor
https://atmospherejs.com/meteorhacks/ssr
264 stars 29 forks source link

missing ) after argument list in Object.SSR.compileTemplate #54

Open jalik opened 7 years ago

jalik commented 7 years ago

I got this error with meteorhacks:ssr@2.2.0 :

SyntaxError: missing ) after argument list in Object.SSR.compileTemplate (packages/meteorhacks_ssr.js:222:32)

jalik commented 7 years ago

The error is thrown because I called SSR.compileTemplate(name, content) with name containing a singlequote, since your are using eval, it seems to break the stuff.