mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
New port: PEAR template API
The Isotemplate API is somewhat tricky for a beginner although it is the best one you can build. template::parse() [phplib template = Isotemplate] requests you to name a source and a target where the current block gets parsed into. Source and target can be block names or even handler names. PR: ports/56304 Submitted by: Alex Miller <asm@asm.kiev.ua>
This commit is contained in:
parent
3177b7ec46
commit
4434c0d0e9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=88391
@ -800,6 +800,7 @@
|
||||
SUBDIR += pear-Date
|
||||
SUBDIR += pear-HTML_Common
|
||||
SUBDIR += pear-HTML_Select_Common
|
||||
SUBDIR += pear-HTML_Template_IT
|
||||
SUBDIR += pear-I18N
|
||||
SUBDIR += pear-PEAR
|
||||
SUBDIR += pedisassem
|
||||
|
39
devel/pear-HTML_Template_IT/Makefile
Normal file
39
devel/pear-HTML_Template_IT/Makefile
Normal file
@ -0,0 +1,39 @@
|
||||
# Ports collection makefile for: pear-HTML_Template_IT
|
||||
# Date created: 02 September 2003
|
||||
# Whom: Alex Miller (<asm@asm.kiev.ua>)
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= HTML_Template_IT
|
||||
PORTVERSION= 1.1
|
||||
CATEGORIES= devel www
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= PEAR template API
|
||||
|
||||
BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR
|
||||
RUN_DEPENDS= ${BUILD_DEPENDS}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
.include "${.CURDIR}/../../devel/pear-PEAR/Makefile.common"
|
||||
|
||||
MANIFEST= IT.php ITX.php IT_Error.php
|
||||
TESTDIR= ${PEARDIR}/tests/${PORTNAME}
|
||||
|
||||
do-install:
|
||||
@${MKDIR} -p ${PEARDIR}/HTML/Template
|
||||
.for FILE in ${MANIFEST}
|
||||
@${CP} -p ${WRKSRC}/${FILE} ${PEARDIR}/HTML/Template
|
||||
.endfor
|
||||
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/HTML/Template
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${TESTDIR}
|
||||
@${CP} -Rp ${WRKSRC}/tests/* ${TESTDIR}
|
||||
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${TESTDIR}
|
||||
@${ECHO_MSG} "===> Examples installed in ${TESTDIR}."
|
||||
@${ECHO_MSG} " (These tests require PHPUnit - see"
|
||||
@${ECHO_MSG} " <http://pear.php.net/package-info.php?package=PHPUnit>;;)."
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
1
devel/pear-HTML_Template_IT/distinfo
Normal file
1
devel/pear-HTML_Template_IT/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (PEAR/HTML_Template_IT-1.1.tgz) = 6062a6b0cf6033b206bd62aaeb36c055
|
21
devel/pear-HTML_Template_IT/pkg-descr
Normal file
21
devel/pear-HTML_Template_IT/pkg-descr
Normal file
@ -0,0 +1,21 @@
|
||||
HTML_Template_IT:
|
||||
Simple template API.
|
||||
The Isotemplate API is somewhat tricky for a beginner although it is the best
|
||||
one you can build. template::parse() [phplib template = Isotemplate] requests
|
||||
you to name a source and a target where the current block gets parsed into.
|
||||
Source and target can be block names or even handler names.
|
||||
|
||||
Features :
|
||||
* Nested blocks
|
||||
* Include external file
|
||||
* Custom tags format (default {mytag})
|
||||
|
||||
HTML_Template_ITX :
|
||||
With this class you get the full power of the phplib template class.
|
||||
You may have one file with blocks in it but you have as well one main file
|
||||
and multiple files one for each block. This is quite usefull when you have
|
||||
user configurable websites. Using blocks not in the main template allows
|
||||
you to modify some parts of your layout easily.
|
||||
|
||||
|
||||
WWW: http://pear.php.net/package-info.php?package=HTML_Template_IT
|
23
devel/pear-HTML_Template_IT/pkg-plist
Normal file
23
devel/pear-HTML_Template_IT/pkg-plist
Normal file
@ -0,0 +1,23 @@
|
||||
%%PEARDIR%%/HTML/Template/IT.php
|
||||
%%PEARDIR%%/HTML/Template/ITX.php
|
||||
%%PEARDIR%%/HTML/Template/IT_Error.php
|
||||
%%PKGREGDIR%%/package.xml
|
||||
%%PORTDOCS%%%%PEARDIR%%/tests/HTML_Template_IT/Console_TestListener.php
|
||||
%%PORTDOCS%%%%PEARDIR%%/tests/HTML_Template_IT/ITX_api_testcase.php
|
||||
%%PORTDOCS%%%%PEARDIR%%/tests/HTML_Template_IT/ITX_usage_testcase.php
|
||||
%%PORTDOCS%%%%PEARDIR%%/tests/HTML_Template_IT/IT_api_testcase.php
|
||||
%%PORTDOCS%%%%PEARDIR%%/tests/HTML_Template_IT/IT_usage_testcase.php
|
||||
%%PORTDOCS%%%%PEARDIR%%/tests/HTML_Template_IT/test.php
|
||||
%%PORTDOCS%%%%PEARDIR%%/tests/HTML_Template_IT/templates/__include.html
|
||||
%%PORTDOCS%%%%PEARDIR%%/tests/HTML_Template_IT/templates/addblock.html
|
||||
%%PORTDOCS%%%%PEARDIR%%/tests/HTML_Template_IT/templates/blockiteration.html
|
||||
%%PORTDOCS%%%%PEARDIR%%/tests/HTML_Template_IT/templates/blocks.html
|
||||
%%PORTDOCS%%%%PEARDIR%%/tests/HTML_Template_IT/templates/globals.html
|
||||
%%PORTDOCS%%%%PEARDIR%%/tests/HTML_Template_IT/templates/include.html
|
||||
%%PORTDOCS%%%%PEARDIR%%/tests/HTML_Template_IT/templates/loadtemplatefile.html
|
||||
%%PORTDOCS%%%%PEARDIR%%/tests/HTML_Template_IT/templates/replaceblock.html
|
||||
@dirrm %%PEARDIR%%/HTML/Template
|
||||
@unexec rmdir %%PEARDIR%%/HTML 2>/dev/null || true
|
||||
@dirrm %%PKGREGDIR%%
|
||||
%%PORTDOCS%%@dirrm %%PEARDIR%%/tests/HTML_Template_IT/templates
|
||||
%%PORTDOCS%%@dirrm %%PEARDIR%%/tests/HTML_Template_IT
|
Loading…
Reference in New Issue
Block a user