bostondevin
2011-03-19 15:29:33 UTC
Hi - new to using this and so far it's been pretty great! Very happy
that @index is available, it would be great if $ was available so I
could access things in the parent node from inside a loop, and all the
other crazy things we can do in xml!
How do I apply a template to another template - say I want to have a
wrapper template that I always want to apply to things - is there a
way to do something like this?
tmpl1: "Here is my outer template <div class='wrapper'>{tmpl2}</div>"
tmpl2: "Here is my inner {label}"
Also, if you have any advanced examples i'd be interested
that @index is available, it would be great if $ was available so I
could access things in the parent node from inside a loop, and all the
other crazy things we can do in xml!
How do I apply a template to another template - say I want to have a
wrapper template that I always want to apply to things - is there a
way to do something like this?
tmpl1: "Here is my outer template <div class='wrapper'>{tmpl2}</div>"
tmpl2: "Here is my inner {label}"
Also, if you have any advanced examples i'd be interested
--
You received this message because you are subscribed to the Google Groups "JSON Template" group.
To post to this group, send email to json-template-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to json-template+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/json-template?hl=en.
You received this message because you are subscribed to the Google Groups "JSON Template" group.
To post to this group, send email to json-template-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to json-template+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/json-template?hl=en.