[Rg 69] Re: Global.tidy does not work anymore?
Lars Olsson
lasso at lassoweb.se
Wed Jul 25 18:12:24 EDT 2007
Hi!
I took a look at the current filter code and spent some parts of my
afternoon writing my own REXML-based filter to use as a drop-in
replacement. I will release it to world+dog as soon as I get those pesky
newlines sorted...In the meantime, some questions:
1) Wouldn't it be nice with some API enhancements for filters (similar
to Nitro's rendering pipeline)? I'm thinking Action.add_filter,
Action.remove_filter, Action.filters and the like. I'll take a stab at
it in a couple of days if no one else beats me to it.
2. While looking at the filter code I realized that Ramaze seems to use
a lot of singleton classes. This might be useful in some cases, but in
the current case I just found it confusing...Is there any particular
reason for using a singleton class in this particular case?
Kindly
/lasso
Michael Fellinger skrev:
> I'm right now updating the rdoc, must be stale information.
> We had to remove support for tidy because it has a serious memoryleak.
> If you want to activate it still, try:
>
> Ramaze::Dispatcher::Action::FILTER << Ramaze::Tool::Tidy
> Ramaze::Tool::Tidy.trait[:enable] = true
--
________________________________________
Lars Olsson
lasso at lassoweb.se
http://www.lassoweb.se/
More information about the Ramaze-general
mailing list