Skip to content

Instantly share code, notes, and snippets.

@smanurung
Created February 27, 2016 08:41
Show Gist options
  • Save smanurung/45f1d9ba6e16eb3f3e8e to your computer and use it in GitHub Desktop.
Save smanurung/45f1d9ba6e16eb3f3e8e to your computer and use it in GitHub Desktop.
static web preprocessor
#!/bin/bash
wd="./src"
t="./template"
o="./output"
fname=$1
ofile=$o/$fname
echo "$ofile"
cat $t/1-head-before-title.html > $ofile
cat $wd/$fname.title >> $ofile
cat $t/2-head-after-title.html >> $ofile
cat $t/3-body-nav-bar.html >> $ofile
cat $wd/$fname.txt >> $ofile
cat $t/4-body-end.html >> $ofile
cat $t/5-core-javascript.html >> $ofile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment