Skip to content

Instantly share code, notes, and snippets.

@marcusramberg
Created November 28, 2008 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcusramberg/29989 to your computer and use it in GitHub Desktop.
Save marcusramberg/29989 to your computer and use it in GitHub Desktop.
We are using L<Template::Toolkit> via L<Catalyst::View::TT> to render most
of our HTML. L<Bizmo::View::TT> Is the default view, and adds a wrapper
(root/wrapper.tt) to any template processed through it. In order to render
templates without the wrapper, set $c->stash->{current_view} to 'TT::Bare'.
Separation of concerns is an important principle inside the view as well as
between the various components in the application. That means that all
javascript code goes into root/static/js/bizmo.js . We are currently using
the jQuery framework, which easily lets us apply unobtrusive javascript
functionality to the HTML. Likewise, all style goes into
root/static/css/style.css. We are also using a reset.css function which sets
all the browsers into a similar 0-styled format before configuring the actual
styling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment