etc/ttree.cfg
author ewong@pw-wspx.org
Fri, 14 Feb 2014 10:33:12 +0000
changeset 1148 da830f59244c1c9040ae42e318a0e7a50ac6dfd7
parent 634 95b22ba53f4acde309b70cd5dad5b8474c99b1da
child 1219 a282f7d484f84ae383ad0e3c1bcd418e84cdf0e1
permissions -rw-r--r--
Website update for SeaMonkey 2.25b1

#------------------------------------------------------------------------
#
# For more information on the contents of this configuration file, see
#
#     perldoc ttree
#     ttree -h
#
#------------------------------------------------------------------------

# This file gets passed to ttree in bin/build via the -f flag.

# print summary of what's going on
#verbose

# recurse into any sub-directories and process files
recurse

# regexen of things that aren't templates and should be ignored
ignore = \b(CVS|RCS)\b
ignore = ^#
ignore = ~$
ignore = \.xml$
ignore = \.xsl$
ignore = \.var$
# I should be able to do ^\.cvsignore$, but that doesn't work for some reason.
ignore = \.cvsignore$
ignore = Makefile$

# ditto for things that should be copied rather than processed.
copy = \.png$
copy = \.ico$
copy = \.gif$
copy = \.jpg$
copy = \.js$
copy = \.css$
copy = \.htaccess$
copy = \.txt$
copy = \.rdf$
copy = \.sh$

# by default, everything not ignored or copied is accepted; add 'accept'
# lines if you want to filter further. e.g.
#
#    accept = \.html$
#    accept = \.tt2$

accept = \.html$
accept = \.jst$
accept = \.json$
accept = \.tmpl$
# Everything in "copy" must also be in "accept"
accept = \.png$
accept = \.ico$
accept = \.gif$
accept = \.jpg$
accept = \.js$
accept = \.css$
accept = \.htaccess$
accept = \.txt$
accept = \.rdf$
accept = \.sh$

# options to rewrite files suffixes (htm => html, tt2 => html)
#
#    suffix htm=html
#    suffix tt2=html

suffix jst=js

# options to define dependencies between templates
# path are relatvie to src or lib
#
    #depend *=sidebar
#    depend index.html=mainpage,sidebar
#    depend menu=menuitem,menubar
# depend_file = etc/ttree.dep
#
depend *=config.tmpl
depend *=wrapper.tmpl
depend *=breadcrumbs.tmpl
depend *=sidebar.tmpl
depend *=sitemap.xml
depend index.en.html=news.en.xml
depend news.en.html=news.en.xml
depend news-atom.en.html=news.en.xml

#------------------------------------------------------------------------
# The following options usually relate to a particular project so
# you'll probably want to put them in a separate configuration file
# in the directory specified by the 'cfg' option and then invoke tree
# using '-f' to tell it which configuration you want to use.
# However, there's nothing to stop you from adding default 'src',
# 'dest' or 'lib' options in the .ttreerc.  The 'src' and 'dest' options
# can be re-defined in another configuration file, but be aware that 'lib'
# options accumulate so any 'lib' options defined in the .ttreerc will
# be applied every time you run ttree.
#------------------------------------------------------------------------
# # directory containing source page templates
# src = /path/to/your/source/page/templates
#
# # directory where output files should be written
# dest = /path/to/your/html/output/directory
#
# # additional directories of library templates
# lib = /first/path/to/your/library/templates
# lib = /second/path/to/your/library/templates

src = src
lib = lib
dest = dest

wrapper = wrapper.tmpl

pre_process = config.tmpl
pre_process = breadcrumbs.tmpl
trim

perl5lib = lib/perl
plugin_base = MozillaOrg::Template::Plugin