[prev in list] [next in list] [prev in thread] [next in thread]
List: mason
Subject: Re: [Mason] Questions about methods and formatting
From: Dave Rolsky <autarch () urth ! org>
Date: 2003-10-23 16:49:09
[Download RAW message or body]
On Thu, 23 Oct 2003, james oliver wrote:
> Have a look at http://www.masonbook.com/book/chapter-2.mhtml#TOC-ANCHOR-8 .
>
> You could write your methods this way:
>
> <%method title>\
> title\
> </%method>
Or something like this:
<&| /strip_nl.mas &><& SELF:title, ... &></&>
Where strip_nl.mas is simply:
<%init>
my $c = $m->content;
$c =~ s/\n//g;
$m->out($c);
</%init>
-dave
/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community? Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic