On Thu, Sep 18, 2008 at 10:52:48PM -0400, Owen Winkler wrote:
> 
> Maybe this feature could be part of the String class:
> 
> String::add_format('out', 'fn_autop');
> String::add_format('out', 'fn_fancypants');
> function filter_format_fn_autop($value) { return autop($value); }
> function filter_format_fn_fancypants($value, $quotestyle) {
>    return fancy_quoted_thing($value, $quotestyle);
> }
> echo $foo->out(array('fn_fancypants'=>FP_UBER_FANCY));

That looks much better to me than what we have currently.

-- 
Michael C. Harris, School of CS&IT, RMIT University
http://twofishcreative.com/michael/blog
IRC: michaeltwofish #habari

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/habari-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to