Am Thu, 23 Oct 2008 21:55:17 -0400
schrieb "Dennis Sutch" <dennis at sutch.com>:
> Are instances of Webgen::Path used to represent a source path or a
> destination path, or both?
Webgen::Path is used to present a source path and is used
a) for representing a source path
b) for constructing the output path
c) for getting the content of the source using the Path#io method
The flow is more or less this (much simplified):
* Webgen::Website#render is called
* config[''sources''] instances are used to find all
Webgen::Source
objects that provide source Webgen::Path objects (available via the
service :source_paths)
* the source handlers use the Webgen::Path objects to create nodes
whose #path property represents the output path (this is done via
SourceHandler::Base#output_path).
* the nodes get written to their destination
-- Thomas