Yiyi Hu | 29 Jan 17:25
Picon

[FormBuilder] Hmm, Here is a patch which will remove auto generated comment in result html, Also, with small enhancement. ; -)

Hello,
All.
FormBuilder rocks anyway. But normally, There is something we don't want.
In any case, You don't like to see the message like
<!-- Generated by CGI::FormBuilder v$VERSION available from
www.formbuilder.org -->
But It seems there is no option to remove this without patching the source.
Touch symbol table works fine. But doesn't work well when we are in
Catalyst::Controller::FormBuilder.
So this patch did this. It won't show the hidden trailer if you set
debug option off.

Another small enhancement is.
I add a browser_compat option (Default is 1). The one which most
people like. ;-)
If It is set to 0.
Then, You won't see the
<!-- hide from old browsers
blablabla
//-->
Things in generated javascript.
Modern browsers.
Even lynx and w3m, can deal with unknown tags correctly.
And I need this feature also. ;-)

Any suggestions welcome.

Xinming
(Continue reading)


Gmane