Seems like you could write a pure XHTML page and insert dynamic elements with XSLT. Writing XSLT is a bitch, so you could use a domain-specific language to declaratively specify which divs to fill in on which events. I'm thinking like:
onload {
'mainbody': "<h1>Huzzah</h1>"
}
action {
'post': doWork();
}
-- continue later --
Lets say CSS selectors or XPath or both.
Since apparently I have the hots for JSON, why not use CSS rules as JSON object keys and pass JSON to a piece of static JS+HTML for construction?
-- continue later --
No comments:
Post a Comment