rendering of .txt files as is

This commit is contained in:
Jaromil 2014-03-29 21:42:44 +01:00
parent fc31cc4db9
commit 4e277ed539
1 changed files with 9 additions and 0 deletions

9
render
View File

@ -287,6 +287,15 @@ temps=(`find pub -type f -name 'temp-*'`)
for t in $temps; do rm -f $t; done
print "done"
# publish all .txt files as-is
# useful for robots.txt
txts=(`find views -maxdepth 1 -type f -name '*.txt'`)
for t in $txts; do
txt=`basename $t`
dst="pub/$txt"
act "publishing plain text: $txt"
cp $t pub/$txt
done
# render all HTML views
htmls=(`find views -type f -name '*.html'`)