pn

the website
git clone ssh://anon@git.pastanoggin.com
Log | Files | Refs | README | LICENSE

templ (221B)


      1 #!/bin/sh
      2 [ $# != 2 ] && { echo "usage: ${0##*/} in out" 1>&2; exit 1; }
      3 sed '
      4 /<!-- {{title}} -->/{
      5 	r '"${1}.title"'
      6 	d
      7 }
      8 /<!-- {{content}} -->/{
      9 	r '"$1"'
     10 	d
     11 }
     12 /<!-- {{status}} -->/{
     13 	r status.in
     14 	d
     15 }
     16 ' main.tmp >"$2"