Sha256: fc557aafdb689dd83e923b614addc29db6d0851ce172e7a3da65bd9925e091cb

Contents?: true

Size: 938 Bytes

Versions: 8

Compression:

Stored size: 938 Bytes

Contents

---
title: Resource
inMenu: true
template: /plugin.template
plugin: Tag/Resource
---
h2(#description). 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 {plugin: Core/ResourceManager}.

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


h2(#examples). Examples


<table class="examples">
<tr>
  <th>Usage</th><th>Output</th>
</tr>
<tr>
  <td><notextile>\{resource: webgen-logo}</notextile></td>
  <td><notextile>{resource: webgen-logo}</notextile></td>
</tr>
<tr>
  <td><notextile>\{resource: w3c-valid-xhtml11}</notextile></td>
  <td><notextile>{resource: w3c-valid-xhtml11}</notextile></td>
</tr>
<tr>
  <td><notextile>\{resource: {name: webgen-css, insert: data}}</notextile></td>
  <td><notextile>{resource: {name: webgen-css, insert: data}}</notextile></td>
</tr>
</table>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
webgen-0.4.0 doc/src/documentation/plugins/tag/resource.page
webgen-0.4.2 doc/src/documentation/plugins/tag/resource.page
webgen-0.4.1 doc/src/documentation/plugins/tag/resource.page
webgen-0.4.5 doc/src/documentation/plugins/tag/resource.page
webgen-0.4.3 doc/src/documentation/plugins/tag/resource.page
webgen-0.4.4 doc/src/documentation/plugins/tag/resource.page
webgen-0.4.6 doc/src/documentation/plugins/tag/resource.page
webgen-0.4.7 doc/src/documentation/plugins/tag/resource.page