[Boulder-Denver Ruby Group] can html content be filtered before it is sent back to the client?

Kevin Williams kevwil at gmail.com
Fri Jun 1 16:28:38 EDT 2007


A Mongrel handler could do it, I would imagine.

On 6/1/07, Ryan Grow <ryan at mountainshows.com> wrote:
> Hi,
>
> I have a requirement to remove some whitespace and newlines from html
> generated by ruby templates, before it goes back to the client.
>
> It seems to be pretty hard to control placement of newlines at the template
> level. Is there a "filter hook" of some sort that can remove unwanted
> characters after the html has been created but before its passed back to the
> web server?
>
> Thanks,
>
> Ryan
>
> _______________________________________________
> Bdrg-members mailing list
> Bdrg-members at rubyforge.org
> http://rubyforge.org/mailman/listinfo/bdrg-members
>


-- 
Cheers,

Kevin Williams
http://www.almostserio.us/

"If you don't think carefully, you might think that programming is
just typing statements in a programming language." - Ward Cunningham
"Any sufficiently advanced technology is indistinguishable from
Magic." - Arthur C. Clarke


More information about the Bdrg-members mailing list