Skip Menu |

This queue is for tickets about the Catalyst-Manual CPAN distribution.

Report information
The Basics
Id: 38517
Status: resolved
Priority: 0/
Queue: Catalyst-Manual

People
Owner: Nobody in particular
Requestors: pancho [...] pancho.name
Cc:
AdminCc:

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



Subject: create view helper: TT TT roles swapped
Date: Sat, 16 Aug 2008 08:03:47 +0200
To: bug-Catalyst-Manual [...] rt.cpan.org
From: pancho [...] pancho.name (Pancho Horrillo)
Ave! Version: Catalyst-Manual-5.7013 In Catalyst::Manual::Tutorial::CatalystBasics.pod under section: * Hello, World! Using a View and a Template I think the roles of the two TTs are swapped in the explanation, i.e., the first TT is the view name, and the second TT specifies Template Toolkit view, and not the other way around, as stated below: To create a TT view, run: $ script/hello_create.pl view TT TT This creates the lib/Hello/View/TT.pm module, which is a subclass of Catalyst::View::TT. The "view" keyword tells the create script that you are creating a view, the first "TT" tells it that you are creating a Template Toolkit view, and the second "TT" tells the script to name the View module "TT.pm", which is a commonly used name for TT views. (You can name it anything you want, such as "HTML.pm".) If you look at TT.pm, you will find that it only contains a config statement to set the TT extension to ".tt". Thanks a lot!
Fixed in svn rev 8225