p5-Template extension to facilitate the use of Class::DBI

This commit is contained in:
espie 2006-11-06 12:24:21 +00:00
parent e4e061bb13
commit a1e4f19f57
4 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,23 @@
# $OpenBSD: Makefile,v 1.1.1.1 2006/11/06 12:24:21 espie Exp $
COMMENT= "template extension for calling class methods"
DISTNAME= Template-Plugin-Class-0.13
PKGNAME= p5-${DISTNAME}
CATEGORIES= textproc perl5
# Same as perl
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Template/}
RUN_DEPENDS= ::textproc/p5-Template
REGRESS_DEPENDS= ${RUN_DEPENDS}
CONFIGURE_STYLE= perl modbuild
PKG_ARCH= *
.include <bsd.port.mk>

View File

@ -0,0 +1,4 @@
MD5 (Template-Plugin-Class-0.13.tar.gz) = 455d687e2108fe3ec28ae34fe590285e
RMD160 (Template-Plugin-Class-0.13.tar.gz) = 554f3aa0ebc4850d561a03649f2a340b9c780465
SHA1 (Template-Plugin-Class-0.13.tar.gz) = 4da2224454091749c8cbc34b57e0bbc014d634cc
SIZE (Template-Plugin-Class-0.13.tar.gz) = 2619

View File

@ -0,0 +1,9 @@
Template::Plugin::Class allows you to call class methods
on arbitrary classes. One use for this is in Class::DBI
style applications, where you may do something like this:
[% USE cd = Class('Music::CD') %]
[% FOREACH disc = cd.retrieve_all %]
[% disc.artist %] - [% disc.title %]
[% END %]

View File

@ -0,0 +1,5 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/11/06 12:24:21 espie Exp $
${P5SITE}/Template/
${P5SITE}/Template/Plugin/
${P5SITE}/Template/Plugin/Class.pm
@man man/man3p/Template::Plugin::Class.3p