Documentation
Asset
The asset plugin creates links to assets such as css, javascript, and images.
| Name | Default | Required | Description |
|---|---|---|---|
| file | None | Yes | The name of the image, javascript, or css file. |
| module | None | Yes | The slug of the module where the image, javascript, or css file you are looking for is. |
Aside from these two parameters, each function will take any more parameters that are appropriate to the item being generated and use those. For example, you can pass an 'alt' parameter to an asset function dealing with images, and it will use it.
URLs and Paths
Each asset type has functions for the normal insert (an img tag for images, for instance), and the plain URLs and Paths. URLs are complete URLs, and paths are paths system paths to each of these assets.
CSS Asset Functions
{pyro:asset:css}
Generates a css insert link tag.
{pyro:asset:css_url}
Generates a full url to a css asset.
{pyro:asset:css_path}
Generates a path to a css asset.
Image
{pyro:asset:image}
Generates an img tag.
{pyro:asset:image_url}
Generates a full url to an image asset.
{pyro:asset:image_path}
Generates a path to an image asset.
JS
{pyro:asset:js}
Generates a js script insert.
{pyro:asset:js_url}
Generates a full url to a js asset.
{pyro:asset:js_path}
Generates a path to a js asset.
