FAQ
Hi.

I've just uploaded Catalyst::View::TT version 0.22 to CPAN, this release
changes the default template name, so that if $c->stash->{template} is not
set, it will fall back to the private name of the matched action, rather
than the eclictic (and not very usable) mix of $c->req->action and
$c->req->match we were using before. I'm sorry about the inconvenience this
causes for anyone, but the Catalyst team really feels this is the way
forward, as the previous solution was not really usable.

--
With regards
Marcus Ramberg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060123/9ae1bad9/attachment.htm

Search Discussions

  • Christopher H. Laco at Jan 23, 2006 at 3:37 pm

    Marcus Ramberg wrote:
    Hi.

    I've just uploaded Catalyst::View::TT version 0.22 to CPAN, this release
    changes the default template name, so that if $c->stash->{template} is not
    set, it will fall back to the private name of the matched action, rather
    than the eclictic (and not very usable) mix of $c->req->action and
    $c->req->match we were using before. I'm sorry about the inconvenience this
    causes for anyone, but the Catalyst team really feels this is the way
    forward, as the previous solution was not really usable.

    --
    With regards
    Marcus Ramberg
    Booooo. Hiisssssssssssssssssssssssssssssssssssss. :-)
    This is definitely one of those announcements where some examples would
    be worth a 1000 questions since the pod for $c->action is example-less.

    So, that means if I have:

    Admin/Gallery.pm : foo : Local
    Gallery.pm : foo : Local

    And no templates set in either, they will both try and use root/foo
    instead of root/admin/gallery/foo and root/gallery.foo ?

    -=Chris

    -------------- next part --------------
    A non-text attachment was scrubbed...
    Name: smime.p7s
    Type: application/x-pkcs7-signature
    Size: 3178 bytes
    Desc: S/MIME Cryptographic Signature
    Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20060123/d887fe52/smime-0001.bin
  • Bill Moseley at Jan 23, 2006 at 4:17 pm

    On Mon, Jan 23, 2006 at 02:51:40PM +0100, Marcus Ramberg wrote:
    Hi.

    I've just uploaded Catalyst::View::TT version 0.22 to CPAN, this release
    changes the default template name, so that if $c->stash->{template} is not
    set, it will fall back to the private name of the matched action, rather
    than the eclictic (and not very usable) mix of $c->req->action.
    Good. I've been using $c->action->reverse. That's what $c->action
    stringifies to, correct?


    --
    Bill Moseley
    moseley@hank.org
  • Marcus Ramberg at Jan 23, 2006 at 5:09 pm

    On 1/23/06, Bill Moseley wrote:
    On Mon, Jan 23, 2006 at 02:51:40PM +0100, Marcus Ramberg wrote:
    Hi.

    I've just uploaded Catalyst::View::TT version 0.22 to CPAN, this release
    changes the default template name, so that if $c->stash->{template} is not
    set, it will fall back to the private name of the matched action, rather
    than the eclictic (and not very usable) mix of $c->req->action.
    Good. I've been using $c->action->reverse. That's what $c->action
    stringifies to, correct?

    Yes.

    Re the examples, no.

    Admin/Gallery.pm : foo : Local
    Gallery.pm <http://gallery.pm/> : foo : Local

    Will resolve to /admin/gallery/foo and /gallery/foo . In the old mess,
    Gallery.pm foo : Global would resolv to /foo . now it resolves to
    /gallery/foo.

    It's all for the best, promise :)

    Marcus

    _______________________________________________
    Catalyst mailing list
    Catalyst@lists.rawmode.org
    http://lists.rawmode.org/mailman/listinfo/catalyst


    --
    With regards
    Marcus Ramberg
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060123/44dad5f7/attachment.htm
  • Christopher H. Laco at Jan 23, 2006 at 5:12 pm

    Marcus Ramberg wrote:
    On 1/23/06, Bill Moseley wrote:
    On Mon, Jan 23, 2006 at 02:51:40PM +0100, Marcus Ramberg wrote:
    Hi.

    I've just uploaded Catalyst::View::TT version 0.22 to CPAN, this release
    changes the default template name, so that if $c->stash->{template} is not
    set, it will fall back to the private name of the matched action, rather
    than the eclictic (and not very usable) mix of $c->req->action.
    Good. I've been using $c->action->reverse. That's what $c->action
    stringifies to, correct?

    Yes.

    Re the examples, no.

    Admin/Gallery.pm : foo : Local
    Gallery.pm <http://gallery.pm/> : foo : Local

    Will resolve to /admin/gallery/foo and /gallery/foo . In the old mess,
    Gallery.pm foo : Global would resolv to /foo . now it resolves to
    /gallery/foo.

    It's all for the best, promise :)

    Marcus
    Right. That's why I said examples are worth a 1000 words here. After
    seeing it, I completely agree it was the right thing to do.

    -=Chris

    -------------- next part --------------
    A non-text attachment was scrubbed...
    Name: smime.p7s
    Type: application/x-pkcs7-signature
    Size: 3178 bytes
    Desc: S/MIME Cryptographic Signature
    Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20060123/d98e233c/smime.bin

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcatalyst @
categoriescatalyst, perl
postedJan 23, '06 at 2:51p
activeJan 23, '06 at 5:12p
posts5
users3
websitecatalystframework.org
irc#catalyst

People

Translate

site design / logo © 2022 Grokbase