[ic] [loop-code] interpolation = security risk?

Andrew Baerg andrew at pullingshots.ca
Thu Oct 23 03:52:07 UTC 2014


On 14-10-22 06:55 PM, Grant wrote:
> Or
> perhaps more practically, are there best practices for rewriting ITL
> in Perl so that it still runs on IC5 but is as easy as possible to
> port to IC6?

In preparation for porting to IC6, my approach in our IC5 development 
for the past few years has been:

- write anything new into Perl modules using Moose and DBIx::Class
- try to think of ActionMaps as Dancer routes and ITL as my templating 
engine
- in general, use ActionMaps to pass data from the modules to the 
templates - [loop object.mv_results=`$arrayref`] has been really useful 
for this

I used dbicdump to create the DBIx classes from our existing IC5 
database and then created an IC5 Sub which gets a DBIx schema connection 
using an interchange DBI handle.

We will be porting one of our IC5 sites (recork.org) in the coming 
months... hopefully I will be able to report that this approach made it 
easier :)

Andrew


-- 
https://github.com/pullingshots ... https://metacpan.org/author/BAERGAJ



More information about the interchange-users mailing list