Re: Mason 2.0 thoughts

John Siracusa <[email protected]> Mon, 14 May 2007 21:05:22 -0400
Newsgroups gmane.comp.web.mason.devel
Message-ID <C26E7F92.75218%[email protected]>
On 5/14/07 9:48 AM, John Siracusa wrote:
> 1. Give me the result (current behavior)
> 2. Give me the raw, unparsed string.
>    2.1 ...and also put me in the context of the calling comp.

One more thing: an option to do inline transformations.  IOW, the escape
would take a string as input and transform it into another string which
would be included directly in the compiled component.

For example, this directive (quotes not needed, remember):

    <% LOGIN_BUTTON:FIELD(size => $size) |f %>

when passed through the "f" handler as a string, could be transformed to:

    $form->field('login_button')->html_field(size => $size)

resulting in this in the compiled component:

    $m->print($form->field('login_button')->html_field(size => $size));

-John



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/