[% INCLUDE header.tt title = 'This is an HTML example'; pages = [ { url = 'http://foo.org' title = 'The Foo Organisation' } { url = 'http://bar.org' title = 'The Bar Organisation' } ] %]
##
~/
|__dist
|__templates
|__cfg
|__trixietang.co.uk
|__src
|__lib
####
# options to rewrite files suffixes (htm => html, tt2 => html)
#
# suffix htm=html
# suffix tt2=html
suffix html.tt=html
####
# options to define dependencies between templates
#
# depend *=header,footer,menu
# depend index.html=mainpage,sidebar
# depend menu=menuitem,menubar
depend *=header.tt,footer.tt
# copy everything except .tt files; those ought to be processed
copy = \.(php|pl|cgi|ico|jpg|pdf|scssc|scss|css|map|eot|svg|otf|ttf|woff|woff2|js|ics|less|eps|pdn|tif|xml)$
# directory containing source page templates
src = ../trixietang.co.uk/src
# directory where output files should be written [~/dist]
dest = ../../dist/trixietang.co.uk
# additional directories of library templates
lib = ../trixietang.co.uk/lib
####
~/
|__dist
|__templates
|__cfg
| |__trixietang.co.uk.conf
|__trixietang.co.uk
|__src
|__lib
|__header.tt
|__footer.tt
####
~/
|__dist
|__templates
|__cfg
| |__trixietang.co.uk.conf
|__trixietang.co.uk
|__src
| |__example.tt
| |__index.html.tt
|__lib
|__header.tt
|__footer.tt
####
cd ~/templates/cfg
ttree -p -f trixietang.co.uk.conf
####
~/
|__dist
| |__trixietang.co.uk
| |_example
| |_index.html
|__templates
|__cfg
| |__trixietang.co.uk.conf
|__trixietang.co.uk
|__src
| |__example.tt
| |__index.html.tt
|__lib
|__header.tt
|__footer.tt