Catalyst-Helper-View-TT-Bootstrap

 view release on metacpan or  search on metacpan

lib/Catalyst/Helper/View/TT/Bootstrap.pm  view on Meta::CPAN

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

=cut

1;
__shared_base__
[%~ TAGS star %]
[%~

MACRO ref(var) BLOCK;
    var_ref = "$var";
    var_ref.match('^([A-Z]+)\\(0x[0-9a-f]+\\)$').0;
END;

# Wraps c.uri_for to point to static resources either inside the
# /root/static structure or explicit URIs.  Assumes 
MACRO static(res, versioned, query) BLOCK;
    uri_params = query || {};
    IF res.match('^https?://');
        res;
    ELSIF versioned && static_build;
        uri_params.ver = uri_params.ver || static_build;
        c.uri_for( static_root, res, uri_params );
    ELSE;
        c.uri_for( static_root, res );
    END;
END;

# Set up the default stash structure for the page
IF !page || !ref(page) == 'HASH';
    page = {};
END;
DEFAULT page.title  = '[* app *]';
DEFAULT page.layout = 'default';
DEFAULT page.header = 'default';
DEFAULT page.nav    = 'default';
DEFAULT page.footer = 'default';
DEFAULT page.head             = {};
DEFAULT page.head.stylesheets = [];
DEFAULT page.head.scripts     = [];
DEFAULT page.body             = {};
DEFAULT page.body.classes     = [];
DEFAULT page.body.scripts     = [];
DEFAULT page.content_class    = 'content';

# Include global macros/vars/set up per implementation
TRY; PROCESS site/global.tt; CATCH file; END;

~%]
__screen_css__
/* Reset styles */
body {
    color: #000;
    background:#FFF;
}
body,
h1, h2, h3, h4, h5, h6,
div, p, blockquote, code, pre, th, td,
ol, ul, li, dl, dt, dd,
form, fieldset, legend, input, textarea {
    margin: 0;
    padding: 0;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
fieldset, img {
    border:0;
}
strong, em, code, th, td {
    font-style: normal;
    font-weight: normal;
}
li {
    list-style: none;
}
h1, h2, h3, h4, h5, h6 {
    font-size: 100%;
    font-weight: normal;
}

/* Layout style */
.content {
    width: 750px;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}
.float_container {
    overflow: hidden;
}
.main_column {
    width: 425px;
}
.support_column {
    width: 300px;
}
.column {
    width: 365px;
}

/* Miscellaneous useful styles */
.hide  { display: none !important }
.left  { display: inline; float: left }
.right { display: inline; float: right }
.clear { clear: both }

/* cursor styles */
.clickable   { cursor: pointer; cursor: hand; }
.unclickable { cursor: default !important; }
.movable     { cursor: move; }
__nav_default_css__
/* Define the style for the default site navigation here */
#nav {
    width: 750px;
    margin: 0 auto 1.2em;
    border-bottom: 1px solid #4d3c4b;
    overflow: hidden;
}   



( run in 1.294 second using v1.01-cache-2.11-cpan-140bd7fdf52 )