App::ZofCMS::Plugin::HTMLFactory::Entry - plugin to wrap content in three divs used for styling boxes


App-ZofCMS-Plugin-HTMLFactory-Entry documentation Contained in the App-ZofCMS-Plugin-HTMLFactory-Entry distribution.

Index


Code Index:

NAME

Top

App::ZofCMS::Plugin::HTMLFactory::Entry - plugin to wrap content in three divs used for styling boxes

SYNOPSIS

Top

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'>

DESCRIPTION

Top

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

MAIN CONFIG FILE AND ZofCMS TEMPLATE FIRST-LEVEL KEYS

Top

plugins

    plugins => [ qw/HTMLFactory::Entry/ ],

To run the plugin all you have to do is include it in the list of plugins to execute.

HTML::Template VARIABLES

Top

    <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>

AUTHOR

Top

'Zoffix, <'zoffix at cpan.org'> (http://zoffix.com/, http://haslayout.net/, http://zofdesign.com/)

BUGS

Top

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.

SUPPORT

Top

You can find documentation for this module with the perldoc command.

    perldoc App::ZofCMS::Plugin::HTMLFactory::Entry

You can also look for information at:

* RT: CPAN's request tracker

http://rt.cpan.org/NoAuth/Bugs.html?Dist=App-ZofCMS-Plugin-HTMLFactory-Entry

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/App-ZofCMS-Plugin-HTMLFactory-Entry

* CPAN Ratings

http://cpanratings.perl.org/d/App-ZofCMS-Plugin-HTMLFactory-Entry

* Search CPAN

http://search.cpan.org/dist/App-ZofCMS-Plugin-HTMLFactory-Entry

COPYRIGHT & LICENSE

Top


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__