7.8/10 (55 أصوات )




  • مرات التنزيل: 164
  • متطلبات التشغيل:
  • الحجم:
  • الترخيص:
  • الاصدار : 0.00002
  • اضيف في: 0000-00-00 00:00:00
  • اخر تحديث: 29/05/2012
  • الموقع علي الانترنت:






Description




Catalyst::View::TT::Alloy is a Catalyst view for the TT emulator Template::Alloy.Your application should define a view class which is a subclass of this module. The easiest way to achieve this is using script/myapp_create.pl (replacing myapp with the name of your application). script/myapp_create.pl view TT::Alloy TT::AlloyYou can either manually forward to the TT::Alloy as normal, or use Catalyst::Action::RenderView to do it for you. # In MyApp::Controller::Root  sub end : ActionClass('RenderView') { }SYNOPSIS# use the helper to create your View myapp_create.pl view TT::Alloy TT::Alloy# configure in myapp.yml 'View::TT::Alloy': INCLUDE_PATH: - __path_to(root/src)__ - __path_to(root/lib)__ PRE_PROCESS: 'config/main' WRAPPER: 'site/wrapper' # optional TEMPLATE_EXTENSION: '.tt' CATALYST_VAR: 'Catalyst'# example render view in lib/MyApp/Controller/Root.pm sub default : Private { my ( $self, $c ) = @_; $c->stash->{template} = 'message.tt2'; $c->stash->{message} = 'Hello World!'; return; }  sub end : ActionClass('RenderView') { }# access variables from template The message is: [% message %].  # example when CATALYST_VAR is set to 'Catalyst' Context is [% Catalyst %]  The base is [% Catalyst.req.base %]  The name is [% Catalyst.config.name %]   # example when CATALYST_VAR isn't set Context is [% c %] The base is [% base %] The name is [% name %]Product's homepage Requirements:

· Perl









التعليقات علي Catalyst::View::TT::Alloy 0.00002
اضافة تعليق

تعليقات الفيسبوك

تعليقات الموقع