Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 27 by fstraps: Better handle undefined variables
http://code.google.com/p/json-template/issues/detail?id=27

$console.log(jsontemplate.Template('vvv={vvv}').expand({xxx:10}))

Generate an exception difficult to intercept and on real/complex
applications it is possibile that variables are not present in the json
object.

I've made a patch that detects this situation, logs it and return an empty
String to let the program execution continue without exceptions

I'll find it useful and think others too..

Thanks, Francesco.

Attachments:
        json-template.diff  969 bytes

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "JSON 
Template" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/json-template?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to