Ttree stopped working for me. It builds html files just fine. But copying has broken, and I don't know why.
If I run ttree I get: 657 ==> ttree -f .ttreerc ttree 2.9 (Template Toolkit version 2.26) Source: ./tt2 Destination: ./site Include Path: [ ./lib ] Ignore: [ ^#, \.sw.$, \.bak$, \.ppm$, \.nef$, \.psd$, content.tty, \.SAVED, ^\._.*, ~$, \.css$ ] Copy: [ \.png$, \.gif$, \.jpg$, \.jpeg$, \.pdf$, \.xls$, \.php$, \.ico$ ] Accept: [ \.tt2$, .htaccess ] Suffix: [ tt2 => html ] Summary: 0 files processed 0 files copied 0 directories created 187 files skipped (not modified) 1391 files skipped (ignored) But the image files aren't copied. E.g. I can go touch tt2/Images/*/* and nothing gets copied. If I run verbose I get lots of lines - Images/whatsnew-2009/Pines-in-winter-2009-04-05_13-56-13.jpeg (not accepted) Why are they not being accepted. Here's my ttreerc file #------------------------------------------------------------------------ # sample .ttreerc file created automatically by ttree version 2.9 # # This file originally written to /home/sgb/.ttreerc # # For more information on the contents of this configuration file, see # # perldoc ttree # ttree -h # #------------------------------------------------------------------------ define base=http://sftf.mirkwood.local # The most flexible way to use ttree is to create a separate directory # for configuration files and simply use the .ttreerc to tell ttree where # it is. # # cfg = /path/to/ttree/config/directory INTERPOLATE = 1 TRIM = 0 PRECHOMP = 1 POSTCHOMP = 1 EVAL_PERL = 1 # print summary of what's going on verbose # recurse into any sub-directories and process files recurse #DEBUG = 'dirs' # regexen of things that aren't templates and should be ignored ignore = ^# ignore = \.sw.$ ignore = \.bak$ ignore = \.ppm$ ignore = \.nef$ ignore = \.psd$ ignore = content.tty ignore = \.SAVED ignore = ^\._.* ignore = ~$ # ditto for things that should be copied rather than processed. copy = \.png$ copy = \.gif$ ignore = \.css$ copy = \.jpg$ copy = \.jpeg$ copy = \.pdf$ copy = \.xls$ copy = \.php$ copy = \.ico$ # 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 = .htaccess # options to rewrite files suffixes (htm => html, tt2 => html) # # suffix htm=html suffix tt2=html # options to define dependencies between templates # depend *=header.inc,footer.inc,Copyright.inc,./file_index.txt # depend index.html=mainpage,sidebar # depend menu=menuitem,menubar #depend_file = dependency.dep #------------------------------------------------------------------------ # 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 src = ./tt2 # # # directory where output files should be written # dest = /path/to/your/html/output/directory dest = ./site # # # additional directories of library templates # lib = /first/path/to/your/library/templates # lib = /second/path/to/your/library/templates lib = ./lib Regards Sherwood
_______________________________________________ templates mailing list templates@template-toolkit.org http://mail.template-toolkit.org/mailman/listinfo/templates