[Catalyst] Protoype define_javascript_functions with Catalyst
Kevin Old
kevinold at gmail.com
Thu Sep 8 17:22:37 CEST 2005
On 9/8/05, Matt S Trout <catalyst at trout.me.uk> wrote:
> On Thu, Sep 08, 2005 at 11:08:01AM -0400, Kevin Old wrote:
> > Hello everyone,
> >
> > I'm working on a Catalyst app that needs the use of HTML::Prototype
> > and all is working just fine, but I have questions about using the
> > define_javascript_functions.
> >
> > Right now, I'm making a call to it on every page that needs it. All
> > of the javascript is shown in the source and seems a little redundant
> > to call it in several places.
> >
> > My thoughts are to create an ajaxjs.js file that won't be processed as
> > a static JS file, and then put my call to define_javascript_functions
> > in there and link to that script in the pages that need it.
>
> ISTR the Prototype helper will create a static .js file for you ...
Well, from the Catalyst::Plugin::Prototype POD it states:
This plugin replaces Catalyst::Helper::Prototype.
So, should I still use C::H::P?
Will I have to regenerate the static files when
HTML::Prototype/C::P::P is updated?
Thanks,
Kevin
--
Kevin Old
kevinold at gmail.com
More information about the Catalyst
mailing list