Gather CSS Plugin for Collection

Useage

This plugin looks at all the namespaces in the ProcessedPod object's plugin-data area and seeks css, add-css or css-link keys in the other plugin's config.

If any of the data are arrays, then each element of the array is treated as below.

Local css files

A css or add-css is interpreted as the name of a local file in the other plugin's directory.

A css key means the contents of the file will be concatenated and placed in a single file called by the key mode-name in the ProcessedPod's plugin data area.

A add-css key means the file will be copied directly to the assets subdirectory under the output directory.

Remote css

A css-link key's value is the url for a stylesheet.

A template is generated so the the css is served with the output contents.

When a css-link key is included in the config of another plugin, eg 「some reference string」, it is included as <link rel=\"stylesheet\" $_ /> , with $_ being the value some reference string.

Provides

Plugin provides or generates

  • a callable that interogates the ProcessedPod object it is passed and find add-css/css/css-link keys.

  • a template for css.

Collection-Plugin-Development v0.4.6

Development and working repository for Collection plugins

The Camelia image is copyright 2009 by Larry Wall. "Raku" is a trademark of the Yet Another Society. All rights reserved.

Built with Podlite — the markup and publishing tools behind this site.