Skip Menu |

This queue is for tickets about the MojoX-Renderer-TT CPAN distribution.

Report information
The Basics
Id: 70866
Status: resolved
Estimated: 10 min
Priority: 0/
Queue: MojoX-Renderer-TT

People
Owner: Nobody in particular
Requestors: MBETHKE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 1.13
Fixed in: (no value)



Subject: Documentation bug: controller instance "c" missing
I just found how to access the current controller instance from TT templates using the "c" stash variable. It only becomes clear when reading the code but is missing from the docs. Something like this? =head1 OTHER RESERVED STASH VARIABLES The current controller instance can be accessed as C<c>. [% c.req.headers.host %]
Subject: Re: [rt.cpan.org #70866] Documentation bug: controller instance "c" missing
Date: Sat, 8 Oct 2011 21:10:04 -0700
To: bug-MojoX-Renderer-TT [...] rt.cpan.org
From: Ask Bjørn Hansen <ask [...] perl.org>
On Sep 10, 2011, at 14:33, Matthias Bethke via RT wrote: Show quoted text
> I just found how to access the current controller instance from TT > templates using the "c" stash variable. It only becomes clear when > reading the code but is missing from the docs. Something like this?
Thanks; I've added that to git! - ask