I'm using HTML::FormHandler and I'd like to make my form persistent by making it a moose attribute in my controller class. In HTML::FormHandler's Manual Intro documentation, it says this:
FormHandler makes heavy use of Moose, so almost all of FormHandler's
profiled time will actually be in Moose methods, mostly constructing form
and field attributes. Some people prefer to use a persistent form class
(in a Moose attribute) in order to skip the form building step on each call.
I would like to do this, however it doesn't give an example and I'm not too familiar with Moose, so I have no idea how to do this. Has anyone done this before that can give an example of what to put in your Catalyst code to accomplish this? Or just and idea of how to do it? Thanks!