I load template from file. The structure of my template:
[[style]].someclass{padding:10px 15px}[[/style]]
[[code]]<tr><td class="someclass">{{text}}</td></tr>[[/code]]
I load template by .get() in "template" var:
$.get('template.html', function(template) {
if (template) {
//cut css styles from [[style]]..[[/style]] etc.
}
});
How i can get content between these markups?
I just need to assign the contents of the blocks ([[style]]..[[/style]], [[code]]..[/code]]) the relevant variables like var style = ..., var code = ... :)
P.S. I think I understand expressing... I apologize for my English :)