Les fichiers pour la démo faite devant ppp - retour accueil
git clone git://bebou.netlib.re/prez-ppp
Log | Files | Refs | README |
page (682B)
1 #! /usr/bin/env dash 2 3 STYLE=/style.css 4 5 tmpdir=$(mktemp -d) 6 trap "rm -rf $tmpdir" EXIT 7 8 tsv2anything() { 9 tee $tmpdir/all | head -n1 | 10 tr ' ' '\n' > $tmpdir/vars 11 tail -n+2 $tmpdir/all | 12 while read line;do 13 eval $(echo "$line" | tr ' ' '\n' | 14 paste -d '=' $tmpdir/vars - | 15 sed -E 's/"/\\\"/g' | 16 sed -E 's/=/&"/;s/$/"/') 17 . "$1" 18 done 19 } 20 21 save() cat >> "$tmpdir/$1" 22 23 alias section:='<<\endsection save' 24 25 show() lowdown --html-no-escapehtml --html-no-skiphtml "$tmpdir/$1" 26 27 alias title:="title" 28 title() title="$*" 29 30 alias author:="author" 31 author() author="$*" 32 33 alias description:="description" 34 description() description="$*" 35 36 . layouts/html 37 38 . "$1" 39 40 layout