This doesn't exactly solve my problem, because I'm not in need of the
context object in my view, rather I'm trying to use my view where no context
object exists.
I solved my issue last night by factoring out my custom filters into a
separate module that I could use Template Toolkit proper (rather
That's the only place to have $c in the entire code, and you only copy
over the bits that you want:
$self = bless({ %$self,
model_accessor = $c-model('MyModel')-whatever,
}, ref($self));
return $self;
then in view::TT:
sub whatever {
my $self = @_;
On Fri, Dec 12, 2008 at 4:01 PM, Kieren Diment dim...@gmail.com wrote:
That's the only place to have $c in the entire code, and you only copy over
the bits that you want:
$self = bless({ %$self,
model_accessor = $c-model('MyModel')-whatever,
}, ref($self));
In an effort to create a sitemap, I want to iterate over all the objects in
my database and construct urls (which I will write to a file) to view all of
those objects. Most of the URLs on my site are constructed using custom TT
filters that I have written.
My question is this: how do I use
On 12/12/2008, at 10:04 AM, Hugh Hunter wrote:
In an effort to create a sitemap, I want to iterate over all the
objects in
my database and construct urls (which I will write to a file) to
view all of
those objects. Most of the URLs on my site are constructed using
custom TT
filters that