2007-12-31: Minor release with feature enhancements. More...
2007-09-08: Small bug fix release. More...
2007-06-29: Some bug fixes and one small feature enhancement. More...
Plugin name: | File/CopyHandler (File/DefaultHandler) |
---|---|
Author: | Thomas Leitner <t_leitner@gmx.at> |
Summary: | Copies files from source to destination |
Parameters: | erbPaths: ["**/*.rhtml", "**/*.rcss"] paths: ["**/*.css", "**/*.js", "**/*.jpg", "**/*.png", "**/*.gif"] |
This plugin has two operation modes:
r
is stripped from the extension (e.g. .rhtml
) to form
the output file name. During processing with ERB the current node
object is available. This
operation mode is useful, for example, for .rhtml
files (HTML with embedded ruby) or .rcss
files (CSS files with embedded ruby).When a file matches against both parameters, it is handled as if it matches only against erbPaths.
Also note that files are written only if the source file is newer than the output file! This means that, for example, images are copied only during the first webgen run and not during the second if the image files have not changed.