4 ms·
My default choice is XML with XSLT and a simple Makefile to generate the HTML.
by mbrock 10y ago
My default choice is XML with XSLT and a simple Makefile to generate the HTML.
- therealmarv 10y agoHaha I like that. But I like also XSLT. Many people think we are strange! :P
- mbrock 10y agoI think XML, for all the hate it gets, is so much nicer for extensible markup than all the weird template languages people invent daily... And XSLT/XPath are really nice too. I just need to figure out how to shell out to external programs from libxslt's xsltproc and then I'll be able to do anything I want...
- tannhaeuser 10y agoThat would've been my choice a couple years ago and I still like this kind of setup for its transparency and maintainability. In fact, I've created sgmljs.net ("isomorphic" SGML + Prolog/Datalog + JavaScript-microservices web stack) to support both in-browser and (static or dynamic) backend preparation of your HTML, XML, or markdown files. SGML has built-in dependency graph info so there's no need for Makefiles and OS command invocations. Unlike XSLT, SGML can parse and produce fully-featured HTML5. (Parts of) SGML constitutes a meta-language for injection- and XSS-free templating (designed to be non-Turing-complete, unlike XSLT). SGML also allows definition of custom Wiki syntaxes (sgmljs has full markdown support).
- codegeek 10y ago"XML with XSLT" You reminded me of my college days circa 2003. Built some fun projects with XSLT and XPATH.