Comment #1 on issue 13 by nadir.seen.fire: ".repeated" is not strictly
necessary
http://code.google.com/p/json-template/issues/detail?id=13
I don't think this is a good idea, it completely breaks a reasonable use
case in
json-template which I am using myself quite a lot.
{{{
var jsonA = {
functions: [
{ name: "Foo" },
{ name: "Bar" },
{ baz: "Baz" }
],
classes: [
{ name: "Foo" },
{ name: "Bar" },
{ baz: "Baz" }
]
};
var jsonB = {
functions: [
{ name: "Foo" },
{ name: "Bar" },
{ baz: "Baz" }
]
};
var jsonC = {
classes: [
{ name: "Foo" },
{ name: "Bar" },
{ baz: "Baz" }
]
};
var jsonD = {};
}}}
{{{
{.section functions}
<h2>Functions</h2>
<ul>
{.repeated section @}
<li>{name|html}</li>
{.end}
</ul>
{.end}
{.section classes}
<h2>Classes</h2>
<ul>
{.repeated section @}
<li>{name|html}</li>
{.end}
</ul>
{.end}
}}}
If you use jsonA a list of functions and classes are shown; jsonB just the
functions;
jsonC just the Classes; jsonD neither.
--
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
-~----------~----~----~----~------~----~------~--~---