[Dancer-users] template with { layout => undef } doesn't seem to work

Brian E. Lozier brian at massassi.com
Thu May 12 17:34:50 CEST 2011


I just realized I am not using Dancer's layout functionality but
instead I'm using Template::Toolkit's so this is not a Dancer problem.
 Sorry for the noise.

On Thu, May 12, 2011 at 8:14 AM, Brian E. Lozier <brian at massassi.com> wrote:
> In the docs it says:
>
> For example, to disable the layout for a specific request:
>
>    get '/' => sub {
>        template 'index.tt', {}, { layout => undef };
>    };
>
> But when I do this:
>
>    my $message = template('email/registration_confirmation.tt',
>        { hash   => $hash, },
>        { layout => undef, },
>    );
>
> The layout is still applied.  I am using Dancer-1.3040.  Can anyone
> spot what I'm doing wrong?
>
> Thanks,
> Brian
>


More information about the Dancer-users mailing list