ttree.cfg 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. #------------------------------------------------------------------------
  2. #
  3. # For more information on the contents of this configuration file, see
  4. #
  5. # perldoc ttree
  6. # ttree -h
  7. #
  8. #------------------------------------------------------------------------
  9. # This file gets passed to ttree in bin/build via the -f flag.
  10. # print summary of what's going on
  11. #verbose
  12. # recurse into any sub-directories and process files
  13. recurse
  14. # regexen of things that aren't templates and should be ignored
  15. ignore = \b(CVS|RCS)\b
  16. ignore = ^#
  17. ignore = ~$
  18. ignore = \.xml$
  19. ignore = \.xsl$
  20. ignore = \.var$
  21. # I should be able to do ^\.hgignore$, but that doesn't work for some reason.
  22. ignore = \.hgignore$
  23. ignore = Makefile$
  24. # ditto for things that should be copied rather than processed.
  25. copy = \.png$
  26. copy = \.ico$
  27. copy = \.gif$
  28. copy = \.jpg$
  29. copy = \.js$
  30. copy = \.css$
  31. copy = \.htaccess$
  32. copy = \.txt$
  33. copy = \.rdf$
  34. copy = \.sh$
  35. # by default, everything not ignored or copied is accepted; add 'accept'
  36. # lines if you want to filter further. e.g.
  37. #
  38. # accept = \.html$
  39. # accept = \.tt2$
  40. accept = \.html$
  41. accept = \.jst$
  42. accept = \.json$
  43. accept = \.tmpl$
  44. # Everything in "copy" must also be in "accept"
  45. accept = \.png$
  46. accept = \.ico$
  47. accept = \.gif$
  48. accept = \.jpg$
  49. accept = \.js$
  50. accept = \.css$
  51. accept = \.htaccess$
  52. accept = \.txt$
  53. accept = \.rdf$
  54. accept = \.sh$
  55. # options to rewrite files suffixes (htm => html, tt2 => html)
  56. #
  57. # suffix htm=html
  58. # suffix tt2=html
  59. suffix jst=js
  60. # options to define dependencies between templates
  61. # path are relatvie to src or lib
  62. #
  63. #depend *=sidebar
  64. # depend index.html=mainpage,sidebar
  65. # depend menu=menuitem,menubar
  66. # depend_file = etc/ttree.dep
  67. #
  68. depend *=config.tmpl
  69. depend *=wrapper.tmpl
  70. depend *=breadcrumbs.tmpl
  71. depend *=sidebar.tmpl
  72. depend *=sitemap.xml
  73. depend index.en.html=news.en.xml
  74. depend news.en.html=news.en.xml
  75. depend news-atom.en.html=news.en.xml
  76. #------------------------------------------------------------------------
  77. # The following options usually relate to a particular project so
  78. # you'll probably want to put them in a separate configuration file
  79. # in the directory specified by the 'cfg' option and then invoke tree
  80. # using '-f' to tell it which configuration you want to use.
  81. # However, there's nothing to stop you from adding default 'src',
  82. # 'dest' or 'lib' options in the .ttreerc. The 'src' and 'dest' options
  83. # can be re-defined in another configuration file, but be aware that 'lib'
  84. # options accumulate so any 'lib' options defined in the .ttreerc will
  85. # be applied every time you run ttree.
  86. #------------------------------------------------------------------------
  87. # # directory containing source page templates
  88. # src = /path/to/your/source/page/templates
  89. #
  90. # # directory where output files should be written
  91. # dest = /path/to/your/html/output/directory
  92. #
  93. # # additional directories of library templates
  94. # lib = /first/path/to/your/library/templates
  95. # lib = /second/path/to/your/library/templates
  96. src = src
  97. lib = lib
  98. dest = dest
  99. wrapper = wrapper.tmpl
  100. pre_process = config.tmpl
  101. pre_process = breadcrumbs.tmpl
  102. trim
  103. perl5lib = lib/perl
  104. plugin_base = MozillaOrg::Template::Plugin