Main > Programming > Libraries >

HTML::EmbperlObject 1.3.6

HTML::EmbperlObject 1.3.6

Sponsored Links

HTML::EmbperlObject 1.3.6 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.35 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 1148
Date added: 2006-09-01
Publisher: G. Richter

HTML::EmbperlObject 1.3.6 description

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 isnt 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 subs (defined with [! sub foo { ... } !] ) or Embperl subs (defined with [$sub foo $] .... [$endsub $]) .

HTML::EmbperlObject 1.3.6 Screenshot

Advertisements

HTML::EmbperlObject 1.3.6 Keywords

Bookmark HTML::EmbperlObject 1.3.6

Hyperlink code:
Link for forum:

HTML::EmbperlObject 1.3.6 Copyright

WareSeeker periodically updates pricing and software information of HTML::EmbperlObject 1.3.6 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of HTML::EmbperlObject 1.3.6 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
HTML::Embperl is a Perl module for building dynamic Websites with Perl. Free Download
HTML Objects is a Perl module library for turning HTML tags into Perl objects. Free Download
Embperl::IntroEmbperlObject is an introduction to EmbperlObject. Free Download
Embperl is a framework for building websites with Perl. Free Download
Embperl::TOC is a Perl module for Embperl Documenation: Table of Contents. Free Download
Embperl::Intro is an introduction to Embperl. Free Download
PObject is a base class for perl objects, takes the irritation out of creating properties for objects. Free Download
HTML::Mason is a powerful Perl-based web site development and delivery engine. Free Download