Error when using a helper with 2 string arguments #1143

Closed
asavoy opened this Issue Jul 2, 2014 · 0 comments

Comments

Projects
None yet
2 participants
@asavoy
Contributor

asavoy commented Jul 2, 2014

Please see this simplified fiddle. The broken template won't render, due to an error: Uncaught SyntaxError: Unexpected string.

This is because the broken example produces compiled code that is missing a comma between the two given arguments:

can.Mustache.txt(
    {scope: scope, options: options},
    null, {get: "concat"}, "==" "with same quotes do not work.")

Bizarrely, it seems to do with using '==' as an argument, and whether the two arguments use the same quotes.

asavoy added a commit to asavoy/canjs that referenced this issue Jul 3, 2014

Added failing test case for #1143: error when passing a string litera…
…l that contains "=" to a Mustache/Stache helper.

@asavoy asavoy referenced this issue Jul 3, 2014

Merged

Fix for #1143 #1149

@justinbmeyer justinbmeyer added the Bug label Jul 23, 2014

@justinbmeyer justinbmeyer added this to the 2.1.3 milestone Jul 23, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment