TTSite
is a Catalyst View that wraps every TT template we use in a header and footer. All of this happens transparently, so we can add some prettiness to our site without writing any CSS or HTML.
TTSite isn't really officially endorsed. It might be okay to use it, but it should be noted that building your own TT base view isn't that hard.
There are a few differences from the standard TT view to be aware of. First, templates are stored in /root/src
instead of /root
. TTSite keeps its configuration in /root/lib
, so that's where you'll want to go if you want to change the look of the site. The configuration is easy to understand—the file called header
contains the TT commands that will be added to the header of the page (and so on).
For this application, we need to make a few modifications to the default setup. First, let's remove the default "message" (to display at the top of the page), so we can specify our own from a Controller. To do this, edit /root/lib/config/main
, removing the block...