Please help to find the solution in the following situation:
we've got a intranet site. We're using Perl+HTML::Template to display the pages.
So basically it is *.cgi and *.tmpl (JS code inside) files.
Now i need to attach extjs framework to the site.
I've managed to display certain selection as as example, but it's easy enough, just an ordinary single 'SELECT ...' binding it to a store and then displaying it inside a grid (table) giving "url: 'data.cgi', //url to data object (server side script)" to a 'proxy' entity. data.cgi returns data string encoded by json
So the question is, how can i correctly utilize the framework having in mind that in a single cgi i aggregate the information i'l show later in template, often iterating through already existing (selection) data to manage some changes etc.
Can i (a good choice) just supply my data piece by piece to store(s) then showing it all in a grid (which is a common usecase)?
How should the whole structure look like? HTML+JS+Perl CGI?
Please share your experience. Example is welcome.