webgen logo

webgen / static website generator

static website generation made easy!

Latest news

2007-12-31: Minor release with feature enhancements. More...

2007-09-08: Small bug fix release. More...

2007-06-29: Some bug fixes and one small feature enhancement. More...

Links

Generated by webgen

General Information

Plugin name:Tag/Resource (Tag/Default)
Author:Thomas Leitner <t_leitner@gmx.at>
Summary:Used for referencing resources
Description:This tag can be used to output the path to a resource or the resource itself.
Parameters:

insert:path
What should be returned by the tag: the path to the resource (value :path) or the data (value :data)

name (=default mandatory parameter): nil
The name of the resource

Handled tags:resource

Description

The resource tag is used to include a resource either verbatim (i.e. its content is copied) or by its path. For more information about resources have a look at the Core/ResourceManager.

This tag is mostly used in templates to include the webgen CSS and JS resources.

Examples

UsageOutput
{resource: webgen-logo} ../../../images/webgen-logo.png
{resource: w3c-valid-xhtml11} ../../../images/w3c-valid-xhtml11.png
{resource: {name: webgen-css, insert: data}} /* START webgen download tag */ .webgen-file-icon, .webgen-download-icon { vertical-align: middle; } /* STOP webgen download tag */ .thumb { display:block; } .CodeRay { background-color: #f8f8f8; border: 1px solid silver; font-family: 'Courier New', 'Terminal', monospace; color: #100; } .CodeRay pre { margin: 0px } div.CodeRay { } span.CodeRay { white-space: pre; border: 0px; padding: 2px } table.CodeRay { border-collapse: collapse; width: 100%; padding: 2px } table.CodeRay td { padding: 2px 4px; vertical-align: top } .CodeRay .line_numbers, .CodeRay .no { background-color: #def; color: gray; text-align: right; } .CodeRay .line_numbers tt { font-weight: bold } .CodeRay .no { padding: 0px 4px } .CodeRay .code { width: 100% } ol.CodeRay { font-size: 10pt } ol.CodeRay li { white-space: pre } .CodeRay .code pre { overflow: auto } .CodeRay .af { color:#00C } .CodeRay .an { color:#007 } .CodeRay .av { color:#700 } .CodeRay .aw { color:#C00 } .CodeRay .bi { color:#509; font-weight:bold } .CodeRay .c { color:#888 } .CodeRay .ch { color:#04D } .CodeRay .ch .k { color:#04D } .CodeRay .ch .dl { color:#039 } .CodeRay .cl { color:#B06; font-weight:bold } .CodeRay .co { color:#036; font-weight:bold } .CodeRay .cr { color:#0A0 } .CodeRay .cv { color:#369 } .CodeRay .df { color:#099; font-weight:bold } .CodeRay .di { color:#088; font-weight:bold } .CodeRay .dl { color:black } .CodeRay .do { color:#970 } .CodeRay .ds { color:#D42; font-weight:bold } .CodeRay .e { color:#666; font-weight:bold } .CodeRay .en { color:#800; font-weight:bold } .CodeRay .er { color:#F00; background-color:#FAA } .CodeRay .ex { color:#F00; font-weight:bold } .CodeRay .fl { color:#60E; font-weight:bold } .CodeRay .fu { color:#06B; font-weight:bold } .CodeRay .gv { color:#d70; font-weight:bold } .CodeRay .hx { color:#058; font-weight:bold } .CodeRay .i { color:#00D; font-weight:bold } .CodeRay .ic { color:#B44; font-weight:bold } .CodeRay .il { background: #eee } .CodeRay .il .il { background: #ddd } .CodeRay .il .il .il { background: #ccc } .CodeRay .il .idl { font-weight: bold; color: #888 } .CodeRay .in { color:#B2B; font-weight:bold } .CodeRay .iv { color:#33B } .CodeRay .la { color:#970; font-weight:bold } .CodeRay .lv { color:#963 } .CodeRay .oc { color:#40E; font-weight:bold } .CodeRay .on { color:#000; font-weight:bold } .CodeRay .op { } .CodeRay .pc { color:#038; font-weight:bold } .CodeRay .pd { color:#369; font-weight:bold } .CodeRay .pp { color:#579 } .CodeRay .pt { color:#339; font-weight:bold } .CodeRay .r { color:#080; font-weight:bold } .CodeRay .rx { background-color:#fff0ff } .CodeRay .rx .k { color:#808 } .CodeRay .rx .dl { color:#404 } .CodeRay .rx .mod { color:#C2C } .CodeRay .rx .fu { color:#404; font-weight: bold } .CodeRay .s { background-color:#fff0f0 } .CodeRay .s .s { background-color:#ffe0e0 } .CodeRay .s .s .s { background-color:#ffd0d0 } .CodeRay .s .k { color:#D20 } .CodeRay .s .dl { color:#710 } .CodeRay .sh { background-color:#f0fff0 } .CodeRay .sh .k { color:#2B2 } .CodeRay .sh .dl { color:#161 } .CodeRay .sy { color:#A60 } .CodeRay .sy .k { color:#A60 } .CodeRay .sy .dl { color:#630 } .CodeRay .ta { color:#070 } .CodeRay .tf { color:#070; font-weight:bold } .CodeRay .ts { color:#D70; font-weight:bold } .CodeRay .ty { color:#339; font-weight:bold } .CodeRay .v { color:#036 } .CodeRay .xt { color:#444 } .thumb-index { background: url("../examples/gallery_styles/slides/index_slide.png") 0 0 no-repeat; width: 120px; height: 120px; } .thumb-index img { padding: 10px; } .thumb-index img:hover { border: 1px solid black; } /* START webgen vertical dropdown menu style */ .webgen-menu-vert-dd ul { list-style-type: none; margin: 0; padding: 0; width: 15em; } .webgen-menu-vert-dd ul ul { border: 1px solid black; position: absolute; z-index: 500; left: 100%; top: 0; } .webgen-menu-vert-dd a { display: block; margin: 0px; padding: 3px 3px; background-color: white; } .webgen-menu-vert-dd li { position: relative; } .webgen-menu-vert-dd ul ul { display: none; } .webgen-menu-vert-dd ul li:hover > ul > ul { display: none; } .webgen-menu-vert-dd ul li:hover > ul { display: block; } /* STOP webgen vertical dropdown menu style */ /* START webgen horizontal dropdown menu style */ .webgen-menu-horiz-dd ul { list-style-type: none; margin: 0; padding: 0; float: left; } .webgen-menu-horiz-dd ul ul { width: 15em; border: 1px solid black; position: absolute; z-index: 500; } .webgen-menu-horiz-dd a { display: block; margin: 0px; padding: 3px 3px; background-color: white; } .webgen-menu-horiz-dd li { position: relative; } .webgen-menu-horiz-dd ul ul ul { position: absolute; top: 0; left: 100%; } .webgen-menu-horiz-dd ul ul { display: none; } .webgen-menu-horiz-dd ul li:hover > ul > ul { display: none; } .webgen-menu-horiz-dd ul li:hover > ul { display: block; } /* STOP webgen horizontal dropdown menu style */ /* START webgen horizontal menu style */ .webgen-menu-horiz ul { display: block; } .webgen-menu-horiz li { display: inline; } /* STOP webgen horizontal menu style */