Yeah, that fairly closely resembles the kind of thing I'd like to do. I want to write as little HTML and javascript as possible. Then the questions becomes, can it be super fast? I was using mod_perl because that was what I was familiar with and it could crank out code very quickly.
| [reply] |
I found that trying to push as much stuff as possible into Perl is possible but usually not worth the effort, at least for SQL, Javascript and HTML.
Personally, I write those parts natively and include them, at least until I have completely understood the problem space. When using "integrated" solutions, I usually find myself running up to the limits of the integration and then fighting the framework that adapts Perl to whatever output I want, instead of actually solving the problem.
But if you're doing it for the fun of it, and for exploratory purposes, have a look at Jifty, which did lots of interesting high-traffic integration of Perl and Javascript, by generating Perl code to generate Javascript components from component templates.
| [reply] |
Yeah, very interesting. Like Jifty, I have templates for each kind of component (textfields, pages, forms, etc.). Each of my components can "talk" to each other under through an `AppPage` object I wrote that binds them all together. I am definitely reinventing the wheel here except my html generator is specific to jquery mobile.
| [reply] |