2007-09-08: Small bug fix release. More...
2007-06-29: Some bug fixes and one small feature enhancement. More...
2007-05-20: Fixed bug which prevented installation via Rubygems. More...
Plugin name: | Core/ResourceManager |
---|---|
Author: | Thomas Leitner <t_leitner@gmx.at> |
Summary: | Provides access to pre- and userdefined resources |
Description: | The resource manager manages a list of predefined and userdefined resources. These resources can be used, for example, in page files. |
Dependencies: | Core/FileHandler |
Parameters: | resources: [] |
The ResourceManager plugin provides access to the resources which are shipped with webgen, for example, the emoticons. Furthermore, it allows the user to specify their own resources.
A resource can either be included directly which means that the content of the resource is written into the HTML file. Or it can be referenced in which case only the path is written into the HTML file and the content of the resource itself is written to its predefined output path. Be aware that a resource is only written to its output path if it is referenced at least once (for example, by the plugin Tag/Resource)!
Speaking of the output path, each resource has four properties:
A reason why webgen has a ResourceManager is the possibility to ship predefined resources with webgen. These resources can be used by any website developed with webgen. The list of predefined resources can be viewed on the Resource Reference page.