Assume you're teaching a non-programmer HTML/CSS basics. What's the *simplest* approach to avoid repeating yourself in related pages?
4
@johannes_gehrs @martinfowler @pvblivs @tomayac @Argorak @ctford @kallensee @fmueller_bln Turns out xsltproc --html <xsl> fits my need
1
@stilkov Wait, does that mean your students have to compile their HTML after each iteration? Or is the conversion happening on-the-fly?
1
@tomayac ATM, each time. Adding the polyfill for development might be a good idea after all, could easily be filtered out if I want it to.
1
@stilkov Oh! "Compiling" HTML sends students the wrong signal IMHO. I'd prefer a pre-built HTML template w/ the polyfill (& comment on why).
1
Replying to @tomayac
@tomayac Interesting. I'd like them (him, actually) to learn the value of scripting

Jul 17, 2013 · 5:57 PM UTC

1
Replying to @stilkov
@stilkov Client- or server-side? For the concrete problem, there're solutions on both sides, w/ pros & cons (think indexing, non-JS env.,…).