Sha256: aac1259b6fcd468d2e4767589ca423a95896748a065580aa193171bc7d97c99d

Contents?: true

Size: 1.03 KB

Versions: 22

Compression:

Stored size: 1.03 KB

Contents

---
title: Webgen::SourceHandler::Copy
---
## Description

This source handler copies files from the source to the output directory, optionally running a
content processor over the content. It is useful, for example, for CSS stylesheets, javascript files
and images.

It decides using the file extension if a content processor should be used and which one. If the
short name of a content processor is the first part of the file extension, the file is processed by
this content processor and the first part is removed from the file extension. Otherwise no
processing is done at all. For example, a file named `hello.jpg` just gets copied verbatimly but a
file named `usage.erb.html` gets preprocessed by the `erb` content processor and written to a file
named `usage.html`. As you can see in this example, the processor name gets stripped from the file
extension.

If you want to use a specific content processor for processing a file, have a look at its
documentation page which shows the unique short name that needs to be used in the file extension.

Version data entries

22 entries across 22 versions & 3 rubygems

Version Path
gettalong-webgen-0.5.4.20080929 doc/sourcehandler/copy.page
gettalong-webgen-0.5.5.20081001 doc/sourcehandler/copy.page
gettalong-webgen-0.5.5.20081010 doc/sourcehandler/copy.page
gettalong-webgen-0.5.5.20081012 doc/sourcehandler/copy.page
gettalong-webgen-0.5.6.20081020 doc/sourcehandler/copy.page
gettalong-webgen-0.5.7.20090227 doc/sourcehandler/copy.page
gettalong-webgen-0.5.8.20090507 doc/sourcehandler/copy.page
gettalong-webgen-0.5.9.20090620 doc/sourcehandler/copy.page
gettalong-webgen-0.5.9.20090626 doc/sourcehandler/copy.page
thewoolleyman-webgen-0.5.8.20090419 doc/sourcehandler/copy.page
webgen-0.5.17 doc/sourcehandler/copy.page
webgen-0.5.15 doc/sourcehandler/copy.page
webgen-0.5.14 doc/sourcehandler/copy.page
webgen-0.5.13 doc/sourcehandler/copy.page
webgen-0.5.12 doc/sourcehandler/copy.page
webgen-0.5.11 doc/sourcehandler/copy.page
webgen-0.5.10 doc/sourcehandler/copy.page
webgen-0.5.9 doc/sourcehandler/copy.page
webgen-0.5.7 doc/sourcehandler/copy.page
webgen-0.5.5 doc/sourcehandler/copy.page