[MKDoc-dev] New modifiers for template designers
Bruno Postle
bruno at mkdoc.com
Fri Nov 18 15:32:13 GMT 2005
MKDoc 1.6 CVS now has some new Petal modifiers to allow template
designers more freedom when displaying text.
The new modifiers use the same MKDoc::Text::Structured backend as
the Text Component. This means that plain text strings can now be
displayed in a variety of ways:
The as_html_entities: modifier will add smartquotes and convert
simple ascii constructs such as (c) to their rich text equivalents.
<title petal:content="structure as_html_entities: title">Document Title</title>
The as_html_inline: modifier will do the same, but will also add
inline tags such as strong or abbr.
<h1 petal:content="structure as_html_inline: title">Document Title</h1>
The as_html_blocks: modifier will do the same, but will add block
level structures such as paragraph tags, lists etc...
<div petal:content="structure as_html_blocks: description">Document Description</div>
For full documentation of MKDoc::Text::Structured, see:
http://search.cpan.org/dist/MKDoc-Text-Structured/
--
Bruno
More information about the MKDoc-dev
mailing list