Comment #1 on issue 23 by [email protected]: String treated as array  
(JavaScript version)
http://code.google.com/p/json-template/issues/detail?id=23

This is basically a case where the error handling could be stricter rather  
than
silently trying to iterate over a string.

The behavior you describe as expected isn't what's intended, see:
http://code.google.com/p/json-template/wiki/Reference

The .or section is only expanded if the section is empty or missing -- not  
if it has
an item which isn't a list.

So I think we should just raise EvaluationError in case the node for a  
repeated
section isn't a list.



--
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