OpenBSD Handbook

Current snapshot · amd64 · Generated 2026-09-09

p5-Catalyst-View-TT-FunctionGenerator-0.02p0

use shorter names in catalyst tt views (deprecated)

Back to search · Project homepage

Description

This plugin should usually be invoked from an end action in your Application. Call generate_functions to create the code references shortcuts to the methods used in the template toolkit view. Then enjoy the shorter syntax. For instance: sub action : Local { my ( $self, $c ) = @_; $c->view("ViewName")->generate_functions('prototype'); # OR $c->view("ViewName")->generate_functions($c->prototype); # OR $c->view("ViewName")->generate_functions([$c, 'uri_for']); } # In your template, we can now have: [% link_to_remote("foo", { url => uri_for("blah") } ) %] # instead of saying this: [% c.prototype.link_to_remote("foo", { url => c.uri_for("blah") } ) %]

Package information

Ports path
textproc/p5-Catalyst-View-TT-FunctionGenerator
Package architecture
*
Maintainer
The OpenBSD ports mailing-list <ports@openbsd.org>
Categories
textproc, devel, perl5
Available flavors
None listed

These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.

Direct dependencies

Runtime

Test

Installing and updating packages · Package details as JSON