Date: Mon, 26 Feb 2001 20:44:38 +0100 (CET) From: tobez@tobez.org To: FreeBSD-gnats-submit@freebsd.org Subject: ports/25389: New port: textproc/p5-Text-SimpleTemplate (Text::SimpleTemplate - Yet another module for template processing) Message-ID: <20010226194438.5B2A754F3@heechee.tobez.org>
next in thread | raw e-mail | index | archive | help
>Number: 25389 >Category: ports >Synopsis: New port: textproc/p5-Text-SimpleTemplate (Text::SimpleTemplate - Yet another module for template processing) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Feb 26 11:50:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Anton Berezin >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: >Description: This is yet another library for template-based text generation. Template-based text generation is a way to separate program code and data, so non-programmer can control final result (like HTML) as desired without tweaking the program code itself. By doing so, jobs like website maintenance is much easier because you can leave program code unchanged even if page redesign was needed. The idea is simple. Whenever a block of text surrounded by '<%' and '%>' (or any pair of delimiters you specify) is found, it will be taken as Perl expression, and will be replaced by its evaluated result. Major goal of this library is simplicity and speed. While there're many modules for template processing, this module has near raw Perl-code (i.e., "s|xxx|xxx|ge") speed, while providing simple-to-use objective interface. >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # p5-Text-SimpleTemplate # p5-Text-SimpleTemplate/pkg-plist # p5-Text-SimpleTemplate/pkg-descr # p5-Text-SimpleTemplate/pkg-comment # p5-Text-SimpleTemplate/distinfo # p5-Text-SimpleTemplate/Makefile # echo c - p5-Text-SimpleTemplate mkdir -p p5-Text-SimpleTemplate > /dev/null 2>&1 echo x - p5-Text-SimpleTemplate/pkg-plist sed 's/^X//' >p5-Text-SimpleTemplate/pkg-plist << 'END-of-p5-Text-SimpleTemplate/pkg-plist' Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Text/SimpleTemplate/.packlist Xlib/perl5/site_perl/%%PERL_VER%%/Text/SimpleTemplate.pm X@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Text/SimpleTemplate X@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Text 2>/dev/null || true X@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/Text 2>/dev/null || true END-of-p5-Text-SimpleTemplate/pkg-plist echo x - p5-Text-SimpleTemplate/pkg-descr sed 's/^X//' >p5-Text-SimpleTemplate/pkg-descr << 'END-of-p5-Text-SimpleTemplate/pkg-descr' XThis is yet another library for template-based text generation. X XTemplate-based text generation is a way to separate program code and Xdata, so non-programmer can control final result (like HTML) as desired Xwithout tweaking the program code itself. By doing so, jobs like website Xmaintenance is much easier because you can leave program code unchanged Xeven if page redesign was needed. X XThe idea is simple. Whenever a block of text surrounded by '<%' and '%>' X(or any pair of delimiters you specify) is found, it will be taken as XPerl expression, and will be replaced by its evaluated result. X XMajor goal of this library is simplicity and speed. While there're many Xmodules for template processing, this module has near raw Perl-code X(i.e., "s|xxx|xxx|ge") speed, while providing simple-to-use objective Xinterface. X X- Anton X<tobez@tobez.org> END-of-p5-Text-SimpleTemplate/pkg-descr echo x - p5-Text-SimpleTemplate/pkg-comment sed 's/^X//' >p5-Text-SimpleTemplate/pkg-comment << 'END-of-p5-Text-SimpleTemplate/pkg-comment' XText::SimpleTemplate - Yet another module for template processing END-of-p5-Text-SimpleTemplate/pkg-comment echo x - p5-Text-SimpleTemplate/distinfo sed 's/^X//' >p5-Text-SimpleTemplate/distinfo << 'END-of-p5-Text-SimpleTemplate/distinfo' XMD5 (Text-SimpleTemplate-0.35.tar.gz) = b9ec953e8c87343c2709d0f9a757451c END-of-p5-Text-SimpleTemplate/distinfo echo x - p5-Text-SimpleTemplate/Makefile sed 's/^X//' >p5-Text-SimpleTemplate/Makefile << 'END-of-p5-Text-SimpleTemplate/Makefile' X# New ports collection makefile for: Text::SimpleTemplate X# Date created: 26 February 2001 X# Whom: Anton Berezin <tobez@tobez.org> X# X# $FreeBSD$ X# X XPORTNAME= Text-SimpleTemplate XPORTVERSION= 0.35 XCATEGORIES= textproc perl5 XMASTER_SITES= ${MASTER_SITE_PERL_CPAN} XMASTER_SITE_SUBDIR= Text XPKGNAMEPREFIX= p5- X XMAINTAINER= tobez@tobez.org X XPERL_CONFIGURE= yes X XMAN3= Text::SimpleTemplate.3 XMANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} X X.include <bsd.port.mk> END-of-p5-Text-SimpleTemplate/Makefile exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010226194438.5B2A754F3>