thanks again, stefan. I had thought about helpers as html formatters for data passed into the template. it is not hard to apply the html formatter to the data before passing it into the template. it was a bit surprising that this did not work.
my app is one M app, in that it is one app that all works on one model. and I am happy to report that I am cooking now! ;-) regards, /iaw On Tuesday, April 4, 2017 at 9:33:33 AM UTC-7, Stefan Adams wrote: > > > On Tue, Apr 4, 2017 at 11:21 AM, iaw4 <[email protected] <javascript:>> > wrote: > >> alas, how would I refer to helpers now? > > > I don't believe helpers belong in the Controller. Either use regular > subroutines and pass them as stash values to the templates, or place your > helpers in your main app. > > With what you propose, I think you're essentially building 500 different > Mojolicious apps and you want a single router for them all. You might be > interested in the Mount plugin > <http://mojolicious.org/perldoc/Mojolicious/Plugin/Mount>. (Or Toadfarm > <https://metacpan.org/pod/Toadfarm>.) > -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.
