Maypole

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
2.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

Changes  view on Meta::CPAN

322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
- 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
- added support for replacing use base qw/https://metacpan.org/pod/All">All My Modules/ with
  use Maypole::Application qw/Redirect AnotherPlugin/; note that this
  will only triggers with parameters to import, to preserve backwards

examples/fancy_example/templates/custom/header  view on Meta::CPAN

1
2
3
4
5
6
7
8
9
10
11
<!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

272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
=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

1
2
3
4
5
6
7
8
9
10
11
<!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 )