FAQ
MME is a single-file, pure-perl webserver primarily intended to be used
by HTML coders during template development. Great care has been taken to
make usage as unintrusive as possible, all you need is perl 5.8.1+
installation on (hopefully) any platform that is supported by perl (at
least Linux, Mas OS X and Strawberry Perl on WinXP should work out of
the box).

TEMPLATES:
Templates are handled by HTML::Mason 1.42 (without dhandler support) but
currently there is no way to influence parameters, so you are stuck with
defaults for autohandler_name and so on.

ARGS EMULATION:
Neither body nor query parameters are passed on to the templates (give
me a holler when you need that), instead you can place an
[component_file].%args file beside any component file to specify
(additional) args passed to it. You are free to use either JSON (parsed
by JSON::PP) or YAML (parsed by YAML::Tiny) format for this file. The
args are filtered through Data::AsObject, so you can easily say:

<%args> $my_value </%args>
Value: <% $my_value->deep->deep->magic %>
# for ( $my_value->members ) { $m->print( $_ ) }

Component args take precedence over autohandler args in the request
component.

SECURITY CONSIDERATIONS:
Never EVER use this for any purpose other than local template
development. I don't think it will eat kittens if left alone, but on the
other hand, I didn't spend ANY time trying to figure out if it might.
You have been warned!

DEVELOPMENT
Currently, this program does exactly what I need, so expect no further
development in terms of features. If you have an itch to scratch, I'll
happily accept patches (or even better pull requests), though.

I won't bother to build stand-alone binaries (with embedded perl), but
if anyone will, I'll find a place to host them.

The repository resides at:
http://github.com/willert/mason-mockup-engine

Cheers,
Sebastian

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcatalyst @
categoriescatalyst, perl
postedNov 27, '09 at 5:58p
activeNov 27, '09 at 5:58p
posts1
users1
websitecatalystframework.org
irc#catalyst

1 user in discussion

Sebastian Willert: 1 post

People

Translate

site design / logo © 2022 Grokbase