Mercurial > pub > Impl
view Lib/IMPL/ORM/Helpers.pm @ 353:feeb3bc4a818
corrected error handling while loading templates
corrected variables lookup in controls
updated handles to use the new view features
author | cin |
---|---|
date | Fri, 11 Oct 2013 15:49:04 +0400 |
parents | 16ada169ca75 |
children |
line wrap: on
line source
package IMPL::ORM::Helpers; use strict; use warnings; require Exporter; our @ISA = qw(Exporter); our @EXPORT_OK = qw(&Map &Box); sub Map($$) { my ($TKey,$TValue) = @_; $TKey =~ s/:://g; $TValue =~ s/:://g; return "IMPL::ORM::Map::${TKey}${TValue}"; } sub Box($) { my ($TValue) = @_; $TValue =~ s/:://g; return "IMPL::ORM::Box::$TValue"; } 1;