Alexis Smirnov
unread,May 22, 2008, 10:16:45 PM5/22/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-jstemplate
Hello,
I'm looking for a way to control the values of an attribute using a
template.
Say i have the data in this form:
{
testArray: ["1", "2", "3"]
}
I'm looking to generate the following HTML:
<div id="1">
content: <span>1</span>
</div>
<div id="2">
content: <span>2</span>
</div>
<div id="3">
content: <span>3</span>
</div>
Is this possible with jstemplate? If so, how would a template look
like?
Thanks,
Alexis