Fascinated to hear about Enlive. I have been thinking about this concept for several years and have cracked something in PHP that shares some principles: templates are pure HTML and you “fill” them by accessing the content on a specific node in the document using CSS or XPath.
$t = new Template('yourfile.html');
$t->fill('#nav',$someMarkup);
$t->fill('#header',$otherMarkup);
I also experimented with creating some clauses to separate content into a “style sheet” ... well, “style sheet” is the wrong word. I call them content addressing lists (the project is called CAST, for a template with a content template). CAS looks like you might expect:
.col #foot {
content: 'foot';
}
#content {
content: file_get_contents('pangolin.txt');
}
, PHP. PHP, .
cssfill.php script, tarball ( , , ./cssfill.php pangolin.cas pangolin.html, , , php- cssfill.php), , .
- , , . , , , , tarball, .