View::WebDisplayer - Microlibrary renderer for repetitive print stuffs
SAD (Simple And Dirty) script for web generating XHTML tags. Can be used for templates, by printing XHTML tags into your Microlibrary web-application output . No MVC at all (we were in a hurry). Just instanciate a new View::WebDisplayer and you are ready to generate tags. Depending on wich subroutine you use, you can pass parameters, see ARGUMENTS section.
This is version 0.01, well known as a Dime And A Shoestring
There is some harcoded XHTML things on the top of the file.
Feel free to remplace the code into $header
,
$header_menu
,
$sidebar_menu
,
$logo
and $footer
to generate a different website.
This can be used to generate a very low-tech template.
Names are well choosen that's our great pride!
Open & close tags with many parameters. Should use it when you don't want to imbricate something, especially for inline tags like <span></span> for example. EXAMPLE : <tag key="value">content of the tag</tag>
Open the tag you want with a single,
many or none parameter(s).
Automatically put the tag into the @tag_stack
,
that will be emptied when you will close this trash-tag.
Close the last tag you have open.
Should not exist,
should close automatically.
Can take a $newline
argument.
$header
.
$header_menu
.
Could be specified, depending on what subroutine you will use.
Self Shelf Swap - Simon Foutaiz - 2011-06-29
my ( $firstname = "seb", $lastname = "feugere", $provider = "gmail"); print $firstname . "." . $lastname . "@" . $provider . "." .com;
Copyright 2011 Self Shelf Swap.
This library is free software. You can redistribute it and/or modify it under the same terms as Perl himself.