ref: 32d6d4393013b2b7b4b3e8f3f953fd796bdd12e9
dir: /md2html/
#!/bin/rc -e . /sys/lib/hlfw/common.rc cd $1 shift rfork ne cache=/usr/web/cache/$1.cache tcache=/usr/web/cache/$1.cache.tmp.$pid if(test -e $cache && ! test $cache -older 1h){ exec cat $cache exit } nl=' ' { prelude '' 'main' markdown $repo/$1.md echo '</article> </body> </html> ' } | tee $tcache && mv $tcache $cache