I want to get template by :
Code:
DOM.getElementById("template");
not with:
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(""); 
  
    }-*/;
How could i do?