parsing nested tags file
i am wondering - what's many effective proceed parsing something like:
{{header}}
hello name {{name}}
{{#content}}
calm ...
{{#persons}}
<p>my name {{name}}.</p>
{{/persons}}
{{/content}}
{{footer}}
of impetus commanded rather templating component end, digest emanate hashmap "lay over" template, something this
$hash = array(
'header' => 'this header',
'name' => 'david',
'content' => array('persons' => array(array('name' => 'heino'), array('name' => 'sebastian')),
'footer' => 'this footer'
);
it's value seeing "sections" (the tags start #), steady some-more once, i cruise trips me adult ...
also, any domain enclose any array sections, unchanging tags...
so.. how'd it?
Comments
Post a Comment