Mark Stosberg wrote:
Usually the data doesn't have embedded HTML chunks to worry about it. But I agree it would be nice to fix them up if they were present.

Most of our apps have CMS functionality somewhere, and as such we end up with a lot of uncontrollable html. Much can be checked on input of course, but just to be sure, we fix up anyway. Especially on apps where the customer can edit the templates.

Andy Lester? He always strikes me as rather busy, but I imagine he would
respond well to prodding if it was accompanied with a patch.

That is my plan. Although I did nudge him into uploading a new developer release (that has the config file option).

Still, I don't like the idea changing the design in automated way. The
document may become technically "standard", but may look broken in /all/
browsers if the changes aren't overseen by a human.

Of course I accept your concern. It will be configurable anyway. The decision should be up to the user, as always :)

Has anybody ever mentioned Class::Trigger? It would be nice to have 'before_foo' and 'after_foo' triggers, for instance, and Class::Trigger has already proven its usefulness in Class::DBI.

I looked it in passing. If you try it with C::A, let us know how you
like it.

Don't hold your breath. But I will try it and let you all know.

2. At the end of your postrun, add a call to the hook "run_html_tidy".

Although it may be still worth weighing the simple traditional way: I could call
$self->validate_html() and skip the hook, and you could call $self->fixup_html(). and skip the hook system, too.

I think I'll settle on this approach for now. It seems the simplest and most flexible way, and it will work with cgiapp < 4.0. Since we don't have an after_postrun hook location anyway, there's not much point in forcing the issue.

Once again, thanks for the discussion. I'm a lot clearer on what kind of interface I should supply, and how to write it.

I'd like to see that "en vakker dag" :)

When I Google that phrase, a lot of Norwegian websites come up. I enjoyed visited there is a teenager...

Literally, it means "one nice/pretty day". It means so much as 'once upon a time' (whenever I find it), and it _is_ Norwegian. I moved to Norway this year with my wife, and the language is fun. It's a close relative of english and dutch (my native language) and german, which makes it interesting because of the similarities and the differences. The country is beautiful too, of course, which is primarily why we moved here. These days it doesn't matter where you live anymore, as long as there's an internet connection.

Cheers,
Rhesa

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to