DynaPage::Document 0.90 review

Download
by rbytes.net on

License: Perl Artistic License
File size: 14K
Developer: Daniel Peder
0 stars award from rbytes.net

DynaPage::Document is a Perl module with DynaPage Document container.

SYNOPSIS:

step1 - document ( create file mydoc.document )
---[content of mydoc-document.info]---

!include.template =- mydoc-template.htmt
my-title =- This is single line
my-head =- Hello World
my-para ==~
This is block
multiline content
blah blah
blah blah
~== my-para

---[content of mydoc-document.info]---
step2 - template ( create file mydoc.template )
---[content of mydoc-template.htmt]---

< html >
< title >[~my-title~]< /title >
< h1 >[~my-head~]< /h1 >
< p >[~my-para~]< /p >
< /html >

---[content of mydoc-template.htmt]---
step3 - open
use DynaPage::Document;
use DynaPage::Document::ext::include;
my $doc = DynaPage::Document->new(
{
RootDir=>'.',
Document=>'mydoc-document.info',
}
);
step4 - render
print $doc->Render();

---[dump of printed result]---
< html >
< title >This is single line< /title >
< h1 >Hello World< /h1 >
< p > This is block
multiline content
blah blah
blah blah< /p >
< /html >
---[dump of printed result]---

Requirements:
Perl

DynaPage::Document 0.90 search tags