Sha256: 8834e08b0768c15ecfabd8bf6b6742a9945a0bb63cede073df1a4d59a689f484
Contents?: true
Size: 1.81 KB
Versions: 1
Compression:
Stored size: 1.81 KB
Contents
--- title: DirectoryHandler inMenu: true template: /plugin.template plugin: File/DirectoryHandler --- h2(#description). Description The directory handler is used for handling directories, ie. it creates the target directories. Additionally an index file for each directory can be specified. If it is specified, this file is used instead of the plain directory index for displaying purposes. This means that when the directory path is resolved (e.g. by the {plugin: Tag/Relocatable}) the index file is returned. The name of the index file is specified with the @indexFile@ meta information on a directory node. This meta information is set by default and can be overridden globally by using the special @defaultMetaInfo@ param for the @DirectoryHandler@ in the <a href="{relocatable: /documentation/gettingstarted.page#config}">configuration file</a> or by setting it on individual directories using the <a href="{relocatable: ../core/filehandler.page#metainfo-file}">meta information backing file</a>. The title for a directory can be set via the @title@ meta information on the directory itself. However, if the directory has an index file, the meta information @directoryName@ of the index file is used for the directory title. This allows different directory names based on the current language. Normally, webgen shows a warning if it could not find the directory index file for a directory. However, there are most certainly directories which should not have an index file, e.g. a directory with only images. To prevent webgen from displaying warnings for such directories, you can set a null index file using the meta information backing file: <pre> dirWithOnlyImages: indexFile: ~ </pre> This will prevent webgen from showing warnings because you explicitly define a null index file. This can also be done globally in the configuration file!
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
webgen-0.4.0 | doc/src/documentation/plugins/file/directoryhandler.page |