From: Tomas Doran Date: Thu, 29 Jan 2009 21:22:25 +0000 (+0000) Subject: TTSite cleanups and further deprecation in MoreCatalystBasics X-Git-Tag: v5.8005~218 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=commitdiff_plain;h=de966eb4075222a38bf5954b9527ef89c90bbb2e TTSite cleanups and further deprecation in MoreCatalystBasics --- diff --git a/Changes b/Changes index 01f2575..5f12ba5 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,8 @@ Revision history for Catalyst-Manual 5.7XXX XXX + - MoreCatalystBasics - Additional clarification about TTSite + (Dell Merrit) - Tutorial::Authorization - Corrects the ACL for "/books/delete" - Additional comments (Dell Merrit) diff --git a/lib/Catalyst/Manual/Tutorial/MoreCatalystBasics.pod b/lib/Catalyst/Manual/Tutorial/MoreCatalystBasics.pod index e8ecba9..edc0ddd 100644 --- a/lib/Catalyst/Manual/Tutorial/MoreCatalystBasics.pod +++ b/lib/Catalyst/Manual/Tutorial/MoreCatalystBasics.pod @@ -348,18 +348,20 @@ L =back -Both are similar, but C merely creates the C +Both helpers are similar. C creates the C file and leaves the creation of any hierarchical template organization entirely up to you. (It also creates a C file for testing; -test cases will be discussed in Part 8.) On the other hand, the -C helper creates a modular and hierarchical view layout with +test cases will be discussed in Part 8.) C, on the other hand, +creates a modular and hierarchical view layout with separate Template Toolkit (TT) files for common header and footer information, configuration values, a CSS stylesheet, and more. -While TTSite is useful to bootstrap a project, most in the Catalyst -community recommend that it's easier to learn both Catalyst and -Template Toolkit if you use the more basic TT approach. Consequently, -this tutorial will use "plain old TT." +While C was useful to bootstrap a project, its use is now +deprecated and to be considered historical. For most Catalyst +applications it adds redundant functionality and structure; many in the +Catalyst community recommend that it's easier to learn both Catalyst and +Template Toolkit if you use the more basic C approach. +Consequently, this tutorial will use "plain old TT." Enter the following command to enable the C style of view rendering for this tutorial: @@ -400,7 +402,9 @@ quote. This changes the default extension for Template Toolkit from '.tt' to '.tt2' and changes the base directory for your template files from -C to C. +C to C. These changes from the default are done mostly +to facilitate the application we're developing in this tutorial; as with +most things Perl, there's more than one way to do it... =head2 Create a TT Template Page