| App-ZofCMS-Plugin-HTMLFactory-Entry documentation | Contained in the App-ZofCMS-Plugin-HTMLFactory-Entry distribution. |
App::ZofCMS::Plugin::HTMLFactory::Entry - plugin to wrap content in three divs used for styling boxes
In your Main Config File or ZofCMS Template file:
plugins => [ qw/HTMLFactory::Entry/ ],
In your HTML::Template template:
<tmpl_var name='entry_start'>
<p>Some content</p>
<tmpl_var name='entry_end'>
The module is a plugin for App::ZofCMS. The module resides in
App::ZofCMS::Plugin::HTMLFactory:: namespace thus only provides some packed HTML code.
I use the HTML code provided by the plugin virtually on every site, and am sick and tired of writing it! Hence the plugin.
This documentation assumes you've read App::ZofCMS, App::ZofCMS::Config and App::ZofCMS::Template
pluginsplugins => [ qw/HTMLFactory::Entry/ ],
To run the plugin all you have to do is include it in the list of plugins to execute.
<tmpl_var name='entry_start'>
<tmpl_var name='entry_end'>
The plugins creates two keys in {t} ZofCMS Template special keys.
entry_start<tmpl_var name='entry_start'>
The entry_start will be replaced with the following HTML code:
<div class="entry">
<div class="entry_top">
<div class="entry_bottom">
entry_end<tmpl_var name='entry_end'>
The entry_end will be replaced with the following HTML code:
</div>
</div>
</div>
'Zoffix, <'zoffix at cpan.org'>
(http://zoffix.com/, http://haslayout.net/, http://zofdesign.com/)
Please report any bugs or feature requests to bug-app-zofcms-plugin-htmlfactory-entry at rt.cpan.org, or through
the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=App-ZofCMS-Plugin-HTMLFactory-Entry. I will be notified, and then you'll
automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
perldoc App::ZofCMS::Plugin::HTMLFactory::Entry
You can also look for information at:
http://rt.cpan.org/NoAuth/Bugs.html?Dist=App-ZofCMS-Plugin-HTMLFactory-Entry
http://annocpan.org/dist/App-ZofCMS-Plugin-HTMLFactory-Entry
http://cpanratings.perl.org/d/App-ZofCMS-Plugin-HTMLFactory-Entry
http://search.cpan.org/dist/App-ZofCMS-Plugin-HTMLFactory-Entry
Copyright 2008 'Zoffix, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| App-ZofCMS-Plugin-HTMLFactory-Entry documentation | Contained in the App-ZofCMS-Plugin-HTMLFactory-Entry distribution. |
package App::ZofCMS::Plugin::HTMLFactory::Entry; use warnings; use strict; our $VERSION = '0.0101'; sub new { bless {}, shift } sub process { my ( $self, $template ) = @_; $template->{t}{entry_start} = <<"END"; <div class="entry"> <div class="entry_top"> <div class="entry_bottom"> END $template->{t}{entry_end} = <<"END"; </div> </div> </div> END } 1; __END__