syushi matsumoto > Sledge-Template-ClearSilver-I18N-0.01 > Sledge::Template::ClearSilver::I18N

Download:
Sledge-Template-ClearSilver-I18N-0.01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

NAME ^

Sledge::Template::ClearSilver::I18N - Internationalization extension to Sledge::Template::ClearSilver.

VERSION ^

Version 0.01

SYNOPSIS ^

Sledge Base Controller

  package YourProj::Pages;
  use strict;
  use base qw(Sledge::Pages::Apache::I18N);
  use Sledge::Template::ClearSilver::I18N;
  use Sledge::Charset::UTF8::I18N;
  
  ....
  
  sub create_charset {
      my $self = shift;
      Sledge::Charset::UTF8::I18N->new($self);
  }

Sledge Application Controller

  package YourProj::Pages::Foo;
  use strict;
  use base qw(YourProj::Pages);
  
  dispatch_index {
      my $self = shift;
      $self->tmpl->param('bar' => {foo_one => 1, foo_two => 2});
  }

ClearSilver Template

  <?cs var:bar.foo_one ?> ## print 1
  <?cs var:bar.foo_two ?> ## print 2

DESCRIPTION ^

Sledge::Template::ClearSilver::I18N is Internationalization extension to Sledge::Template::ClearSilver.

BUGS ^

Please report any bugs or suggestions at http://rt.cpan.org/NoAuth/Bugs.html?Dist=Sledge-Template-CleaSilver-I18N

SEE ALSO ^

Sledge::Template::ClearSilver Bundle::Sledge::I18N

ClearSilver Documentation: http://www.clearsilver.net/docs/

AUTHOR ^

syushi matsumoto, <matsumoto at alink.co.jp>

COPYRIGHT AND LICENSE ^

Copyright (C) 2009 Alink INC. all rights reserved.

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

syntax highlighting: