-
1 Nov 2008 5:35 PM #1
Could i get template form html file?
Could i get template form html file?
I want to get template by :
not with:Code:DOM.getElementById("template");
How could i do?Code:private native String getTemplate() /*-{ var html = [ '<p>Name: {name}</p>', '<p>Company: {company}</p>', '<p>Location: {location}</p>', '<p>Kids: ', '<tpl for="kids" if="name==\'Darrell Meyer\'">', '<tpl if="age > 1"><p>{#}. {parent.name}\'s kid - {name}</p></tpl>', '</tpl></p>' ]; return html.join(""); }-*/;


Reply With Quote