Sha256: 12c45af27c6c98d2ce200f06674ef79c1d99cf7f48b430ca27d01ce629a01bcc

Contents?: true

Size: 1.42 KB

Versions: 26

Compression:

Stored size: 1.42 KB

Contents

---
title: Webgen::SourceHandler::Directory
---
## Description

The directory handler is used for handling directories, ie. it creates the target directories.
Additionally an index path for each directory can be specified which is used instead of the plain
directory index for displaying purposes. This means that when the directory path is specified
(e.g. by Webgen::Tag::Relocatable) the index path is returned.

The name of the index path is specified with the meta information `index_path` which is set to
`index.html` by default. This meta information needs to be set directly on the directory node (for
example, via a meta information backing file).

The title for a directory can be set via the `title` meta information on the directory itself.
However, if the directory has an index path, the meta information `routed_title` of the index path
is used for the directory title. This enables webgen to provide correctly localized directory names.

Normally, webgen shows a warning if it could not find the directory index path for a directory.
However, there are most certainly directories which should not have an index path, for example, a
directory containing only images. To prevent webgen from displaying warnings for such directories,
you can set a null index path using a meta information backing file:

    dirWithOnlyImages:
      index_path: ~

This will prevent webgen from showing warnings because you explicitly define a null index path.

Version data entries

26 entries across 26 versions & 3 rubygems

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