Giter Site home page Giter Site logo

michaelr / catalyst-view-tt-bootstrap-yui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jshirley/catalyst-view-tt-bootstrap-yui

1.0 3.0 0.0 82 KB

A Template-Toolkit based application bootstrapper that generates YUI files

Home Page: http://www.coldhardcode.com/projects/catalyst-view-tt-bootstrap-yui/

Perl 100.00%

catalyst-view-tt-bootstrap-yui's Introduction

NAME
    Catalyst::Helper::View::TT::Bootstrap::YUI - Generate TT templates using
    YUI

SYNOPSIS
    Helper for TT view. Creates the `MyAppView/TT.pm' file and a template
    directory structure under MyApp/root containing templates, macros, and
    links to the hosted version of the YUI `reset-fonts-grids.css' file.

    Use the helper to create the view module and templates:

        $ script/myapp_create.pl view TT TT::Bootstrap::YUI

    The stash key for configuring everything is `$c->stash->{page}' with
    defaults in `MyApp/root/site/shared/base.tt'.

    Add something like the following to the page templates for your
    application

     [%~
        page.layout = '2columns';  # use a 2 column layout (default is 'default')
        page.header = 'my_custom'; # will load root/site/header/my_custom.tt
        page.footer = 'none';      # don't display a footer

        # adds these <link rel="stylsheet"...> tags to the <head>
        page.head.stylesheets.push('foo.css','bar.css');

        # adds these <script> tags to the <head>
        page.head.scripts.push('foo.js','bar.js');

        # adds these <script> tags to the bottom of the <body> -- usually preferable
        page.body.scripts.push('baz.js','poop.js');

        # adds these classes to the <body> tag
        page.body.classes.push('foo','bar');
     ~%]
     ...your content here...

DESCRIPTION
    This helper module creates a Catalyst::View::TT class in your
    application. It also creates a set of templates, macros, and a
    stylesheet to let you focus on the content of your apps pages sooner
    with less copy and pasting.

    It also provides a mechanism for adding dynamic filters, for doing
    things like date formatting.

    If you already have a TT view in your application, make sure to include
    the other directives that are created by the helper. Typically, this
    file is simply `MyApp/lib/MyApp/View/TT.pm.new' if a file exists with
    the same name.

    See Catalyst::Helper::View::TT::Bootstrap::YUI::Manual for more details
    on available variables and macros, and how to work with the layouts.

  METHODS
    mk_compclass
    Generates the component class.

    mk_templates
    Generates the templates.

SEE ALSO
    Catalyst, Catalyst::View::TT, Catalyst::Helper,
    Catalyst::Helper::View::TT

AUTHORS
    Jay Shirley <[email protected]>

    Lucas Smith <[email protected]>

LICENSE
    This library is free software . You can redistribute it and/or modify it
    under the same terms as perl itself.

NAME
    [% class %] - Catalyst TT::Bootstrap::YUI View

SYNOPSIS
    See [% app %]

DESCRIPTION
    Catalyst TT::Bootstrap::YUI View.

AUTHOR
    [% author %]

LICENSE
    This library is free software, you can redistribute it and/or modify it
    under the same terms as Perl itself.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.