|
Content - a content item. |
Content - a content item.
<{perl
$cont = get_content_object ("foo.txt");
[... etc.]
}>
This object allows manipulation of WebMake content items directly.
proto:protocol-specific-location-data, e.g. file:blah/foo.txt or
http://webmake.taint.org/index.html.
expand()expand_no_ref()
$score = $cont->get_metadata("score");
The metadatum is converted to its native type, e.g. score is return as an
integer, title as a string, etc. If the metadatum is not provided, the
default value for that item, defined in HTML::WebMake::Metadata, is used.
up metadatum.
Returns a list of content objects in unsorted order.
up metadatum.
Returns a list of content objects sorted by the provided sort string.
Note that, in some cases, the content item may not have been referred to yet by
the time it's get_url() method is called. In this case, WebMake will insert a
symbolic tag, hold the file in memory, and defer writing the file in question
until all other output files have been processed and the URL has been found.
|
Content - a content item. |