Maypole
view release on metacpan or search on metacpan
2982993003013023033043053063073083093103113123133143153163172.04 Tue Oct 27 14:00:00 2004
- fixed Apache::MVC version (Randal Schwartz)
- fixed template_args (Dave Howorth)
- new Maypole::Config documentation (Dave Howorth)
- Maypole::Model::Base::process()
no
more steals you the first
arg
after
fetching objects
2.03 Tue Oct 26 13:00:00 2004
- increased version number of Apache::MVC
- fixed display_tables bug (Steve Simms)
- fixed templates, now again XHTML compliant
- documentation fix (Dave Howorth)
- only set charset
for
text/*
2.02 Mon Oct 25 13:00:00 2004
- Fixed charset in http header.
- replaced action links
with
forms in factory templates
2.01 Sun Oct 24 14:50:00 2004
- documentation fix to make t/03podcoverage happy
322323324325326327328329330331332333334335336337338339340341342- merged Apache2::MVC (mod_perl2 support) into Apache::MVC
- added Maypole::Application universal front-end
- config parameter handling
for
Maypole::Model::CDBI
-
$r
->{query} is now deprecated,
use
$r
->{params}
for
GET and POST
- fixed multiple value handling (Simon Flack)
- added exception handling (Simon Flack)
- fixed documentation bugs
- changed
default
documentencoding to utf8. Change
with
$r
->config->{document_encoding}
- removed Maypole::View::Mason as it's distributed separately on CPAN.
- factory templates are now XHTML 1.1 compliant.
- made the config hash into -> Maypole::Config
- accessors
for
everything
- win32 support
- new documentation
for
Maypole.pm (Simon Flack)
- moved doc/*.pod to lib/Maypole/Manual
- added Maypole::Model::Base::is_public() to make it simple to overload
:Exported behavior
will only triggers
with
parameters to
import
, to preserve backwards
examples/fancy_example/templates/custom/header view on Meta::CPAN
1234567891011<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1//EN"
<head>
<title>
[%
title || config.application_name ||
"A poorly configured Maypole application"
%]
</title>
<meta http-equiv=
"Content-Type"
content=
"text/html; charset=[% request.document_encoding %]"
/>
lib/Maypole/Manual/StandardTemplates.pod view on Meta::CPAN
272273274275276277278279280281282283284285286287288289290291292=head3 F<view>
template view
=head3 F<edit>
The F<edit> template is pretty much the same as F<view>, but it uses
L<Maypole::Model::CDBI::AsForm>'s
C<to_field> method on each column of an object to return a C<HTML::Element>
object representing a form element to edit that property. These elements
are then rendered to HTML with C<as_HTML> or to XHTML with C<as_XML>.
It expects to see a list of
editing errors, if any, in the C<errors> template variable:
FOR col = classmetadata.columns;
NEXT IF col == "id";
"<P>";
"<B>"; classmetadata.colnames.$col; "</B>";
": ";
item.to_field(col).as_HTML;
"</P>";
lib/Maypole/templates/factory/header view on Meta::CPAN
1234567891011<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1//EN"
<head>
<title>
[%
title || config.application_name ||
"A poorly configured Maypole application"
%]
</title>
<meta http-equiv=
"Content-Type"
content=
"text/html; charset=[% request.document_encoding %]"
/>
( run in 0.541 second using v1.01-cache-2.11-cpan-26ccb49234f )