|
NAMECatalyst::View::ClearSilver - ClearSilver View ClassSYNOPSISUse the helper:create.pl view ClearSilver ClearSilver Which generates "lib/MyApp/View/ClearSilver.pm": package MyApp::View::ClearSilver use base 'Catalyst::View::ClearSilver'; 1; Configure it to your liking: MyApp->config->{View::ClearSilver} = { INCLUDE_PATH => ['/path/to/loadpath', '/path/to/anotherpath'], TEMPLATE_EXTENSION => '.cs', # .cs is the default # optional: INCLUDE_HDF => ['mydata1.hdf', 'mydata2.hdf'], }; Then use it: $c->forward('MyApp::View::ClearSilver'); my $out = $c->view('ClearSilver')->render('template.cs'); # etc. DESCRIPTIONThis is the "ClearSilver" view class. It works like Catalyst::View::Templated, so refer to that for more details on what config options and methods you can use.CAVEATSYou can't call back into your application from ClearSilver, so most of the attributes in $c will be worthless. Be sure to pre-compute anything you need and put it in the stash before rendering.$c will not be included in your HDF at all, and hence the "CATALYST_VAR" config option is ignored. Setting it is a fatal error. METHODS
CONFIG VARIABLES
AUTHORJiro Nishiguchi "<jiro@cpan.org>"Jonathan Rockway "<jrockway@cpan.org>" This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSOCatalyst, Catalyst::View::Templated, ClearSilverClearSilver Documentation: <http://www.clearsilver.net/docs/>
Visit the GSP FreeBSD Man Page Interface. |