BSD Ports

www/p5-Catalyst-View-TT-ControllerLocal 0.02_2 FreeBSD

Catalyst TT View with template names relative to the Controller

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
ART10, GPLv1+
Categories
www, perl5
Package size
9.5 KiB, 15.0 KiB installed

Description

Catalyst::View::TT::ControllerLocal is like a normal Catalyst TT View, but with template file names relative to the current Controller. So with a set of templates like:

./root/edit.html ./root/add.html ./root/Frobniz/add.html

and an action "add" in the Controller "MyApp::Controller::Frobniz", you set "$c->stash->{template}" to "add.html" in order for it to pick up the "./root/frobbiz/add.html" template.

Setting the "$c->stash->{template}" from Controller "MyApp::Con- troller::Bogon" would instead pick the default template in "./root/add.html" (since there is no Bogon subdirectory under root).

In addition, since there is no file "edit.html" except in the Frobniz directory, C::V::TT::ControllerLocal will default to looking for "edit.html" in ./root/ and ./root/base (or whatever you set MyApp->con- fig->{INCLUDE_PATH} to).

In the other systems

SystemPortVersion
FreeBSDwww/p5-Catalyst-View-TT-ControllerLocal0.02_2
DragonFlywww/p5-Catalyst-View-TT-ControllerLocal0.02_2

Install

Binary package:

pkg install p5-Catalyst-View-TT-ControllerLocal

From the ports tree:

cd /usr/ports/www/p5-Catalyst-View-TT-ControllerLocal/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-Catalyst-View-TT-ControllerLocal>0:www/p5-Catalyst-View-TT-ControllerLocal

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.02_20.02_20.02_20.02_20.02_2
FreeBSD:14:quarterly0.02_20.02_2n/a0.02_20.02_2
FreeBSD:15:latest0.02_20.02_2n/a0.02_20.02_2
FreeBSD:15:quarterly0.02_20.02_2n/an/an/a
FreeBSD:16:latest0.02_20.02_2n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 3

Runtime 3

The full lists below include those, and their dependencies in turn.

Build dependencies 144

The first 100 are listed.

Run dependencies 144

The first 100 are listed.

Required by 1

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 4
  • %%SITE_PERL%%/Catalyst/View/TT/ControllerLocal.pm
  • %%SITE_PERL%%/Catalyst/Helper/View/TTControllerLocal.pm
  • %%PERL5_MAN3%%/Catalyst::Helper::View::TTControllerLocal.3.gz
  • %%PERL5_MAN3%%/Catalyst::View::TT::ControllerLocal.3.gz
distinfo 1
FileSizeSHA256
Catalyst-View-TT-ControllerLocal-0.02.tar.gz3511723260f304122c8cd570b197a30f44d8413bbe94b7cb0e540092ec725c5bc603
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.