abw / Template2

Perl Template Toolkit v2
http://template-toolkit.org/
146 stars 94 forks source link

ttree: Implement assets directories #276

Closed sciurius closed 4 years ago

sciurius commented 4 years ago

This PR implements assets directories in ttree.

Assets directories are directories that contain assets, fixed (static) materials that are not to be processed by Template, but always copied 'as is'. Common use is for static images, icons, documentation files, videos and so on.

The PR adds the keyword assets and corresponding command line option --assets that can be used to name a directory that contains assets. This directory must reside directly under the top of the source tree. Multiple directories can be specified by repeating the keyword or command line option.

When asset directories are specified, all files in these directories are copied with two exceptions:

Note that suffix mapping still applies. I'm not sure if this is desired.