[Catalyst-commits] r7448 - in
trunk/Catalyst-View-TT-Bootstrap/lib/Catalyst/Helper/View/TT:
. Bootstrap
jshirley at dev.catalyst.perl.org
jshirley at dev.catalyst.perl.org
Thu Feb 21 20:58:48 GMT 2008
Author: jshirley
Date: 2008-02-21 20:58:48 +0000 (Thu, 21 Feb 2008)
New Revision: 7448
Modified:
trunk/Catalyst-View-TT-Bootstrap/lib/Catalyst/Helper/View/TT/Bootstrap.pm
trunk/Catalyst-View-TT-Bootstrap/lib/Catalyst/Helper/View/TT/Bootstrap/Manual.pm
Log:
Adding in support for a body id tag (page.body.id)
Modified: trunk/Catalyst-View-TT-Bootstrap/lib/Catalyst/Helper/View/TT/Bootstrap/Manual.pm
===================================================================
--- trunk/Catalyst-View-TT-Bootstrap/lib/Catalyst/Helper/View/TT/Bootstrap/Manual.pm 2008-02-21 19:35:36 UTC (rev 7447)
+++ trunk/Catalyst-View-TT-Bootstrap/lib/Catalyst/Helper/View/TT/Bootstrap/Manual.pm 2008-02-21 20:58:48 UTC (rev 7448)
@@ -252,6 +252,10 @@
script tags at the bottom of the body tag. For this reason, it is advisable to
use page.body.scripts rather than this.
+=item page.body.id
+
+Apply an ID to the body tag
+
=item page.body.classes
[%
Modified: trunk/Catalyst-View-TT-Bootstrap/lib/Catalyst/Helper/View/TT/Bootstrap.pm
===================================================================
--- trunk/Catalyst-View-TT-Bootstrap/lib/Catalyst/Helper/View/TT/Bootstrap.pm 2008-02-21 19:35:36 UTC (rev 7447)
+++ trunk/Catalyst-View-TT-Bootstrap/lib/Catalyst/Helper/View/TT/Bootstrap.pm 2008-02-21 20:58:48 UTC (rev 7448)
@@ -396,17 +396,25 @@
%]
</head>
<!--[if !IE]> <-->
- <body[% page.body.classes.size ?
+ <body
+ [%~ IF page.body.id %] id="[% page.body.id %]"[% END %]
+ [%~ page.body.classes.size ?
' class="' _ page.body.classes.unique.join(' ') _ '"' : '' %]>
<!--><![endif]-->
<!--[if IE 5]>
- <body class="[% page.body.classes.join(' ') %] IE IE5">
+ <body
+ [%~ IF page.body.id %] id="[% page.body.id %]"[% END =%]
+ class="[% page.body.classes.join(' ') %] IE IE5">
<![endif]-->
<!--[if IE 6]>
- <body class="[% page.body.classes.join(' ') %] IE IE6">
+ <body
+ [%~ IF page.body.id %] id="[% page.body.id %]"[% END =%]
+ class="[% page.body.classes.join(' ') %] IE IE6">
<![endif]-->
<!--[if IE 7]>
- <body class="[% page.body.classes.join(' ') %] IE IE7">
+ <body
+ [%~ IF page.body.id %] id="[% page.body.id %]"[% END =%]
+ class="[% page.body.classes.join(' ') %] IE IE7">
<![endif]-->
[% # Drop in the header if appropriate
header %]
More information about the Catalyst-commits
mailing list