Linux SoftwareProgrammingLibrariesHTML::EmbperlObject 1.3.6

HTML::EmbperlObject 1.3.6


HTML::EmbperlObject is a Perl module that extents HTML::Embperl for building whole website with reusable components and objects. S
Developer:   G. Richter
      more software by author →
Price:  0.00
License:   Perl Artistic License
File size:   349K
Language:   
OS:   
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot


HTML::EmbperlObject is a Perl module that extents HTML::Embperl for building whole website with reusable components and objects.

SYNOPSIS

< Location /foo >
PerlSetEnv EMBPERL_OBJECT_BASE base.htm
PerlSetEnv EMBPERL_FILESMATCH ".htm.?|.epl$"
SetHandler perl-script
PerlHandler HTML::EmbperlObject
Options ExecCGI
< /Location >

HTML::EmbperlObject allows you to build object-oriented (OO) websites using HTML components which implement inheritance via subdirectories. This enables elegant architectures and encourages code reuse. The use of inheritance also enables a website-wide "look and feel" to be specified in a single HTML file, which is then used as a template for every other page on the site. This template can include other modules which can be overridden in subdirectories; even the template itself can be overridden. In a nutshell, EmbperlObject makes the design of large websites much more intuitive, allowing object-oriented concepts to be utilised to the fullest while staying within the "rapid application development" model of Perl and HTML.

HTML::EmbperlObject is basicly a mod_perl handler or could be invoked offline and helps you to build a whole page out of smaller parts. Basicly it does the following:

When a request comes in, a page, which name is specified by EMBPERL_OBJECT_BASE, is searched in the same directory as the requested page. If the pages isn't found, EmbperlObject walking up the directory tree until it finds the page, or it reaches DocumentRoot or the directory specified by EMBPERL_OBJECT_STOPDIR.

This page is then called as frame for building the real page. Addtionaly EmbperlObject sets the search path to contain all directories it had to walk before finding that page. If EMBPERL_OBJECT_STOPDIR is set the path contains all directories up to the in EMBPERL_OBJECT_STOPDIR specified one.

This frame page can now include other pages, using the HTML::Embperl::Execute method. Because the search path is set by EmbperlObject the included files are searched in the directories starting at the directory of the original request walking up thru the directory which contains the base page. This means that you can have common files, like header, footer etc. in the base directory and override them as necessary in the subdirectory.

To include the original requested file, you need to call Execute with a '*' as filename. To call the the same file, but in an upper directory you can use the special shortcut ../*.

Additionaly EmbperlObject sets up a inherence hierachie for you: The requested page inherit from the base page and the base page inherit from a class which could be specified by EMBPERL_OBJECT_HANDLER_CLASS, or if EMBPERL_OBJECT_HANDLER_CLASS is not set, from HTML::Embperl::Req. That allows you to define methods in base page and overwrite them as neccessary in the original requested files.

For this purpose a request object, which is blessed into the package of the requested page, is given as first parameter to each page (in $_[0]). Because this request object is a hashref, you can also use it to store additional data, which should be available in all components. Embperl does not use this hash itself, so you are free to store whatever you want. Methods can be ordinary Perl sub's (defined with [! sub foo { ... } !] ) or Embperl sub's (defined with [$sub foo $] .... [$endsub $]) .

Requirements:
  • Perl
    tags embperl object  base page  the directory  the base  html embperlobject  requested page  you can  the original  object stopdir  the requested  html embperl  original requested  with sub  

    Download HTML::EmbperlObject 1.3.6


     http://mirrors.evolva.ro/CPAN/authors/id/G/GR/GRICHTER/HTML-Embperl-1.3.6.tar.gz


    Authors software

    HTML::EmbperlObject 1.3.6 (by G. Richter)
    HTML::EmbperlObject is a Perl module that extents HTML::Embperl for building whole website with reusable components and objects.

    S

    HTML::Embperl 1.3.6 (by G. Richter)
    HTML::Embperl is a Perl module for building dynamic Websites with Perl.

    SYNOPSIS

    Embperl is a Perl extension module which gives


    Similar software

    HTML::EmbperlObject 1.3.6 (by G. Richter)
    HTML::EmbperlObject is a Perl module that extents HTML::Embperl for building whole website with reusable components and objects.

    S

    HTML::Embperl 1.3.6 (by G. Richter)
    HTML::Embperl is a Perl module for building dynamic Websites with Perl.

    SYNOPSIS

    Embperl is a Perl extension module which gives

    Embperl::IntroEmbperlObject 2.2.0 (by Neil Gunton)
    Embperl::IntroEmbperlObject is an introduction to EmbperlObject.

    This tutorial is intended as a complement to the Embperl document

    Embperl::Intro 2.2.0 (by Embperl::Intro Team)
    Embperl::Intro is an introduction to Embperl.

    Embperl has started as a Perl module for simply embedding Perl into HTML and has gro

    Embperl 2.2.0 (by Gerald Richter)
    Embperl is a framework for building websites with Perl.

    For the beginner it's an easy to setup and use way of embedding Perl code

    Embperl::TOC 2.2.0 (by G. Richter and A. Beckert)
    Embperl::TOC is a Perl module for Embperl Documenation: Table of Contents.

    Embperl can be used in many ways and it's documentation

    Template::Plugin::Page 0.10 (by Leon Brocard)
    Template::Plugin::Page is a plugin to help when paging through sets of results.

    SYNOPSIS

    [% USE page = Page($total_entries, $

    Data::Page 2.00 (by Leon Brocard)
    Data::Page is a Perl module that helps when paging through sets of results.

    SYNOPSIS

    use Data::Page;

    my $page = Data::Pa

    Template::Plugin::Pagination 0.90 (by Tony Bowden)
    Template::Plugin::Pagination is a plugin to help paginate pages of results.

    SYNOPSIS

    [% USE page = Pagination(items, current_

    mod_murka 0.8 (by Alex Esterkin)
    mod_murka creates a convenient apache, xml, xsl based web publishing environment


    Other software in this category

    zlib 1.2.3 (by Jean-loup Gailly)
    zlib is designed to be a free, general-purpose, legally unencumbered, lossless data-compression library for use on virtually any comp

    libjpeg v6b (by Independent JPEG Group)
    libjpeg is a library for handling the JPEG (JFIF) image format

    OpenSSL 0.9.7c (by The OpenSSL Project Team)
    The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implement

    libxml2 2.6.27 (by DV)
    Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform), libxml2 library i

    GNU C library 2.4 (by Andreas Jaeger)
    GNU C library (glibc) is one of the most important components of GNU Hurd and most modern Linux distributions.

    GNU C library is us

  •     search


    Featured Software

    jEdit 4.3 pre8
    jEdit is an Open Source text editor written in Java

    Opera 9.02
    Surf the Internet in a safer, faster, and easier way with Opera browser

    GNU Aspell 0.60.4
    GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell


    Subscribe in Rojo
    Google Reader
    Add to My Yahoo!

    Add to My AOL
    Subscribe with Bloglines
    Subscribe in NewsGator Online
    Add 'nixbit linux software' to Newsburst from CNET News.com
    del.icio.us nixbit linux software


    Top tags