HTML::Macro 1.27
Sponsored Links
HTML::Macro 1.27 Ranking & Summary
File size:
0.023 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1181
Date added:
2006-07-31
Publisher:
Michael Sokolov
HTML::Macro 1.27 description
HTML::Macro can process HTML templates with loops, conditionals, macros and more!
SYNOPSIS
use HTML::Macro;
$htm = new HTML::Macro (template.html);
$htm->print;
sub myfunc {
$htm->declare (var, missing);
$htm->set (var, value);
return $htm->process;
}
( in template.html ):
< html >< body >
< eval expr="&myfunc" >
< if def="missing" >
Message about missing stuff...
< else / >
Vars value is #var#.
< /if >
< /eval >
< /body >< /html >
HTML::Macro is a module to be used behind a web server (in CGI scripts). It provides a convenient mechanism for generating HTML pages by combining "dynamic" data derived from a database or other computation with HTML templates that represent fixed or "static" content of a page.
There are many different ways to accomplish what HTML::Macro does, including ASP, embedded perl, CFML, etc, etc. The motivation behind HTML::Macro is to keep everything that a graphic designer wants to play with *in a single HTML template*, and to keep as much as possible of what a perl programmer wants to play with *in a perl file*. Our thinking is that there are two basically dissimilar tasks involved in producing a dynamic web page: graphic design and programming. Even if one person is responsible for both tasks, it is useful to separate them in order to aid clear thinking and organized work. I guess you could say the main motivation for this separation is to make it easier for emacs (and other text processors, including humans) to parse your files: its yucky to have a lot of HTML in a string in your perl file, and its yucky to have perl embedded in a special tag in an HTML file.
HTML::Macro began with some simple programming constructs: macro expansions, include files, conditionals, loops and block quotes. Since then weve added very little: only a define tag to allow setting values and an eval tag to allow perl function calls in a nested macro scope. Our creed is "less is more, more or less."
HTML::Macro variables will look familiar to C preprocessor users or especially to Cold Fusion people. They are always surrounded with single or double hash marks: "#" or "##". Variables surrounded by double hash marks are subject to html entity encoding; variables with single hash marks are substituted "as is" (like single quotes in perl or UNIX shells). Conditionals are denoted by the
and
tags, and loops by the
tag. Quoting used to be done using a
SYNOPSIS
use HTML::Macro;
$htm = new HTML::Macro (template.html);
$htm->print;
sub myfunc {
$htm->declare (var, missing);
$htm->set (var, value);
return $htm->process;
}
( in template.html ):
< html >< body >
< eval expr="&myfunc" >
< if def="missing" >
Message about missing stuff...
< else / >
Vars value is #var#.
< /if >
< /eval >
< /body >< /html >
HTML::Macro is a module to be used behind a web server (in CGI scripts). It provides a convenient mechanism for generating HTML pages by combining "dynamic" data derived from a database or other computation with HTML templates that represent fixed or "static" content of a page.
There are many different ways to accomplish what HTML::Macro does, including ASP, embedded perl, CFML, etc, etc. The motivation behind HTML::Macro is to keep everything that a graphic designer wants to play with *in a single HTML template*, and to keep as much as possible of what a perl programmer wants to play with *in a perl file*. Our thinking is that there are two basically dissimilar tasks involved in producing a dynamic web page: graphic design and programming. Even if one person is responsible for both tasks, it is useful to separate them in order to aid clear thinking and organized work. I guess you could say the main motivation for this separation is to make it easier for emacs (and other text processors, including humans) to parse your files: its yucky to have a lot of HTML in a string in your perl file, and its yucky to have perl embedded in a special tag in an HTML file.
HTML::Macro began with some simple programming constructs: macro expansions, include files, conditionals, loops and block quotes. Since then weve added very little: only a define tag to allow setting values and an eval tag to allow perl function calls in a nested macro scope. Our creed is "less is more, more or less."
HTML::Macro variables will look familiar to C preprocessor users or especially to Cold Fusion people. They are always surrounded with single or double hash marks: "#" or "##". Variables surrounded by double hash marks are subject to html entity encoding; variables with single hash marks are substituted "as is" (like single quotes in perl or UNIX shells). Conditionals are denoted by the
tag, but we now deprecate that in favor of the more familiar CFML quoting syntax: < !--- --- >.
HTML::Macro 1.27 Screenshot
HTML::Macro 1.27 Keywords
HTML
Macro 1.27
html templates
process HTML
Perl
conditionals
loops
process
templates
tag
HTML::Macro
HTMLMacro
HTML::Macro 1.27
Libraries
Programming
Bookmark HTML::Macro 1.27
HTML::Macro 1.27 Copyright
WareSeeker periodically updates pricing and software information of HTML::Macro 1.27 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::Macro 1.27 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
html tags
html code
html body html
process html form with php
software html templates
html codes
myspace html templates
process html as php
myspace html
perlane
ebay html templates
html rulez d00d
what is html
html templates for ebay
flash html templates
html color code
loops and other groups
process html tags
Related Software
HTML::Mason is a powerful Perl-based web site development and delivery engine. Free Download
HTML Objects is a Perl module library for turning HTML tags into Perl objects. Free Download
HTMLTemplate converts HTML/XHTML templates into simple Python object models. Free Download
Text::Macro Perl module is a template facility whos focus is on generating code such as c, java or sql. Free Download
HTML::Merge is an embedded HTML/SQL/Perl system. Free Download
HTML::LoL is a Perl module that can construct HTML from pleasing Perl data structures. Free Download
File::MMagic is a Perl module to guess file type. Free Download
HTML Include solves the problem that the Hypertext Markup Language doesnt know a command. Free Download
Latest Software
Popular Software
Favourite Software