Changeset 29729
- Timestamp:
- 02/08/09 23:36:04 (4 years ago)
- Location:
- lang/perl/Chaostr/trunk
- Files:
-
- 3 added
- 7 modified
-
conf/chaostr_fv.yml (modified) (1 diff)
-
extlib/Template (added)
-
extlib/Template/Stash (added)
-
extlib/Template/Stash/EscapeHTMLByCase.pm (added)
-
lib/Chaostr/Web/Controller/Login.pm (modified) (1 diff)
-
lib/Chaostr/Web/View/TT.pm (modified) (3 diffs)
-
root/lib/site/footer (modified) (1 diff)
-
root/lib/site/html (modified) (1 diff)
-
root/lib/site/layout (modified) (1 diff)
-
root/lib/site/wrapper (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Chaostr/trunk/conf/chaostr_fv.yml
r27643 r29729 9 9 strict: 10 10 name: 11 rule: 12 - String#ascii 13 - String#length: 14 min: 1 15 max: 30 16 username: 11 17 rule: 12 18 - String#ascii -
lang/perl/Chaostr/trunk/lib/Chaostr/Web/Controller/Login.pm
r27643 r29729 60 60 $c->log->info( $c->user->name . '(' . $c->req->address . ') logined' ); 61 61 62 $c->model('DB IC::Users')->find( $c->user->id )62 $c->model('DB::Users')->find( $c->user->id ) 63 63 ->update( { lastlogin_at => $c->datetime() } ); 64 64 -
lang/perl/Chaostr/trunk/lib/Chaostr/Web/View/TT.pm
r27643 r29729 5 5 use Path::Class; 6 6 use Template::Provider::Encoding; 7 use Template::Stash:: ForceUTF8;7 use Template::Stash::EscapeHTMLByCase; 8 8 9 9 my $root = Chaostr::Web->config()->{root}->stringify; … … 19 19 20 20 TEMPLATE_EXTENSION => '.tt', 21 ENCODING => 'utf8', 21 22 22 23 LOAD_TEMPLATES => [ … … 26 27 ], 27 28 28 STASH => Template::Stash:: ForceUTF8->new,29 STASH => Template::Stash::EscapeHTMLByCase->new, 29 30 30 31 PRE_PROCESS => 'config/main', -
lang/perl/Chaostr/trunk/root/lib/site/footer
r27643 r29729 1 1 <!-- BEGIN site/footer --> 2 <div id="copyright">[% site.copyright %]</div>2 <div id="copyright">[% RAW.site.copyright %]</div> 3 3 <!-- END site/footer --> -
lang/perl/Chaostr/trunk/root/lib/site/html
r27643 r29729 10 10 </head> 11 11 <body> 12 [% content %]12 [% RAW.content %] 13 13 </body> 14 14 </html> -
lang/perl/Chaostr/trunk/root/lib/site/layout
r27643 r29729 2 2 3 3 <div id="content"> 4 [% content %]4 [% RAW.content %] 5 5 </div> 6 6 -
lang/perl/Chaostr/trunk/root/lib/site/wrapper
r27643 r29729 4 4 ELSE; 5 5 debug("Applying HTML page layout wrappers to $template.name\n"); 6 content WRAPPER site/html + site/layout;6 RAW.content WRAPPER site/html + site/layout; 7 7 END; 8 8 -%]
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)