Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
MicroMason::ApacheHandUser3Contributed Perl DocumeMicroMason::ApacheHandler(3)

NAME
       Text::MicroMason::ApacheHandler - Use MicroMason	from mod_perl

SYNOPSIS
       In your httpd.conf or equivalent	Apache configuration file:

	 PerlModule Text::MicroMason::ApacheHandler

	 <Files	*.mm>
	   SetHandler perl-script
	   PerlHandler Text::MicroMason::ApacheHandler
	 </Files>

       In your document	root or	other web-accessible directory:

	 <% my $visitor	= $r->connection->remote_host(); %>
	 <html>
	   Hello there <%= $visitor %>!
	   The time is now <%= localtime() %>.
	 </html>

DESCRIPTION
       Caution:	This module is new, experimental, and incomplete. Not intended
       for production use. Interface subject to	change.	If you're interested
       in this capability, your	feedback would be appreciated.

   Configuration
       The following configuration parameters are supported:

       MicroMasonSyntax
	       PerlSetVar MicroMasonSyntax HTMLMason

	   Name	of the syntax class that will compile the templates. Defaults
	   to HTMLMason.

       MicroMasonMixins
	       PerlAddVar MicroMasonMixins Safe
	       PerlAddVar MicroMasonMixins CatchErrors

	   List	of additional mixin classes to be enabled.

       MicroMasonAttribs
	       PerlAddVar MicroMasonAttribs "-AllowGlobals, allow_globals => '$r'"

	   Allows for any set of attributes to be defined. Mixin names
	   prefaced with a dash	can also be included.

SEE ALSO
       For an overview of this templating framework, see Text::MicroMason.

       This is a mixin class intended for use with Text::MicroMason::Base.

       For distribution, installation, support,	copyright and license
       information, see	Text::MicroMason::Docs::ReadMe.

perl v5.24.1			  2007-01-29	  MicroMason::ApacheHandler(3)

NAME | SYNOPSIS | DESCRIPTION | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Text::MicroMason::ApacheHandler&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help