[Catalyst-commits] r12413 - trunk/examples/CatalystAdvent/root

t0m at dev.catalyst.perl.org t0m at dev.catalyst.perl.org
Wed Dec 16 23:06:23 GMT 2009


Author: t0m
Date: 2009-12-16 23:06:23 +0000 (Wed, 16 Dec 2009)
New Revision: 12413

Modified:
   trunk/examples/CatalystAdvent/root/year.tt
Log:
Just gonna put those back commented out

Modified: trunk/examples/CatalystAdvent/root/year.tt
===================================================================
--- trunk/examples/CatalystAdvent/root/year.tt	2009-12-16 23:02:20 UTC (rev 12412)
+++ trunk/examples/CatalystAdvent/root/year.tt	2009-12-16 23:06:23 UTC (rev 12413)
@@ -23,6 +23,8 @@
 [% today = 1 UNLESS calc.Delta_Days( now.year, now.month, now.day, year, 12, day ) %]
         [% TRY %]
             [% USE File( c.path_to( 'root', year, "${day}.pod" ) ) %]
+			[%# USE date = DateTime(year = year, month = 12, day = day) %]
+			[%# IF c.stash.now < date; THROW too.early; END; %]
     <td class="link[% IF today %] today[% END %]"><a href="[% c.uri_for( '/', year, day ) %]">[% day %]</a></td>
         [% CATCH File %]
     <td[% IF today %] class="today"[% END %]>[% day  %]</td>




More information about the Catalyst-commits mailing list