cvs: pear /HTML_Template_Xipe/Xipe/docs/simpleTags index.php index.tpl /HTML_Template_Xipe/Xipe/docs/xmlConfig config.xml index.php index.tpl
| From: | Wolfram Kriesing | Date: | Tue, 14 Jan 2003 22:08:20 +0000 |
| Subject: | cvs: pear /HTML_Template_Xipe/Xipe/docs/simpleTags index.php index.tpl /HTML_Template_Xipe/Xipe/docs/xmlConfig config.xml index.php index.tpl | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-8246@lists.php.net to get a copy of this message | ||
cain Tue Jan 14 17:08:20 2003 EDT
Modified files:
/pear/HTML_Template_Xipe/Xipe/docs/xmlConfig config.xml index.php
index.tpl
/pear/HTML_Template_Xipe/Xipe/docs/simpleTags index.php index.tpl
Log:
- properly convert to Xipe
Index: pear/HTML_Template_Xipe/Xipe/docs/xmlConfig/config.xml diff -u pear/HTML_Template_Xipe/Xipe/docs/xmlConfig/config.xml:1.5 pear/HTML_Template_Xipe/Xipe/docs/xmlConfig/config.xml:1.6 --- pear/HTML_Template_Xipe/Xipe/docs/xmlConfig/config.xml:1.5 Sun Nov 3 07:51:36 2002 +++ pear/HTML_Template_Xipe/Xipe/docs/xmlConfig/config.xml Tue Jan 14 17:08:19 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" ?> -<simpletemplate> +<HTML_Template_Xipe> <options override="yes"> <delimiter begin="[" end="]"/> <autoBraces value="true"/> @@ -48,4 +48,4 @@ </preFilter> -</simpletemplate> +</HTML_Template_Xipe> Index: pear/HTML_Template_Xipe/Xipe/docs/xmlConfig/index.php diff -u pear/HTML_Template_Xipe/Xipe/docs/xmlConfig/index.php:1.6 pear/HTML_Template_Xipe/Xipe/docs/xmlConfig/index.php:1.7 --- pear/HTML_Template_Xipe/Xipe/docs/xmlConfig/index.php:1.6 Sun Nov 3 07:52:06 2002 +++ pear/HTML_Template_Xipe/Xipe/docs/xmlConfig/index.php Tue Jan 14 17:08:19 2003 @@ -1,45 +1,41 @@ <?php - ##################################### - # - # include the files needed - # - require_once('SimpleTemplate/Engine.php'); - require_once('SimpleTemplate/Filter/Basic.php'); + // + // include the files needed + // + require_once('HTML/Template/Xipe.php'); + require_once('HTML/Template/Xipe/Filter/Basic.php'); - ##################################### - # - # make template class instance - # + // + // make template class instance + // $options = array( 'templateDir' => dirname(__FILE__), 'enable-XMLConfig'=>true, 'logLevel' => 1 ); - $tpl = new SimpleTemplate_Engine($options); + $tpl = new HTML_Template_Xipe($options); -#$tpl->setOption('forceCompile',true); +//$tpl->setOption('forceCompile',true); - ##################################### - # - # make filter class instance - # -/* $tplFilter = new SimpleTemplate_Filter_Basic($tpl->getOptions()); + // + // make filter class instance + // +/* $tplFilter = new HTML_Template_Xipe_Filter_Basic($tpl->getOptions()); // pre filter $tpl->registerPrefilter(array(&$tplFilter,'removeHtmlComments')); $tpl->registerPrefilter(array(&$tplFilter,'removeCStyleComments')); $tpl->registerPrefilter(array(&$tplFilter,'addIfBeforeForeach')); // this filter makes the foreach-blocks conditional, so they are only shown if they contain data, see api-doc */ // post filter -# $tpl->registerPostfilter('trimLines',$tplFilter); -# $tpl->registerPostfilter('optimizeHtmlCode',$tplFilter); +// $tpl->registerPostfilter('trimLines',$tplFilter); +// $tpl->registerPostfilter('optimizeHtmlCode',$tplFilter); - ##################################### - # - # fill variables used in the template - # no assign-method necessary - # + // + // fill variables used in the template + // no assign-method necessary + // $advantages = array( 'clean HTML-code', 'ALL the power of PHP inside a template', 'a compiled template', @@ -58,11 +54,10 @@ - ##################################### - # - # show the template - # + // + // show the template + // $tpl->compile('index.tpl'); include($tpl->getCompiledTemplate()); -?> \ No newline at end of file +?> Index: pear/HTML_Template_Xipe/Xipe/docs/xmlConfig/index.tpl diff -u pear/HTML_Template_Xipe/Xipe/docs/xmlConfig/index.tpl:1.4 pear/HTML_Template_Xipe/Xipe/docs/xmlConfig/index.tpl:1.5 --- pear/HTML_Template_Xipe/Xipe/docs/xmlConfig/index.tpl:1.4 Sun Jun 2 18:38:56 2002 +++ pear/HTML_Template_Xipe/Xipe/docs/xmlConfig/index.tpl Tue Jan 14 17:08:19 2003 @@ -1,5 +1,8 @@ <!-- $Log: index.tpl,v $ + Revision 1.5 2003/01/14 22:08:19 cain + - properly convert to Xipe + Revision 1.4 2002/06/02 22:38:56 mccain - convert all config-tags to lower case, this is secure for now also if the Tree-package is not updated @@ -9,17 +12,17 @@ --> -<simpletemplate> +<HTML_Template_Xipe> <options override="yes"> <delimiter begin="[" end="]"/> <autoBraces value="true"/> <locale value="en"/> </options> -</simpletemplate> +</HTML_Template_Xipe> <html> <head> - <title>Example - SimpleTemplate, XML-configured</title> + <title>Example - HTML_Template_Xipe, XML-configured</title> <link href="../style.css" type="text/css" rel="StyleSheet"> </head> @@ -41,13 +44,13 @@ <a href="[$viewConfigXmlUrl]">config.xml</a> or/and in this <a href="[$viewTemplateCodeUrl]">template-file (index.tpl)</a>.<br> <code> -<simpletemplate><br> +<HTML_Template_Xipe><br> <options override="yes"><br> <delimiter begin="\[" end="\]"/><br> <autoBraces value="true"/><br> <locale value="en"/><br> </options><br> -</simpletemplate><br> +</HTML_Template_Xipe><br> </code> <br><br> @@ -99,7 +102,7 @@ </td> </tr> </table> -then you should try SimpleTemplate.<br><br> +then you should try HTML_Template_Xipe.<br><br> <br><br> @@ -118,7 +121,7 @@ <h2>all the currently possible and working xml-options - overview</h2> <code> -<simpletemplate><br> +<HTML_Template_Xipe><br> <options><br> <delimiter begin="\[" end="\]"/><br> <autoBraces value="true"/><br> @@ -128,9 +131,9 @@ <depends value="$someVar $anotherVar $_nextVar"/><br> </cache><br> </options><br> -</simpletemplate><br> +</HTML_Template_Xipe><br> </code> </body> -</html> \ No newline at end of file +</html> Index: pear/HTML_Template_Xipe/Xipe/docs/simpleTags/index.php diff -u pear/HTML_Template_Xipe/Xipe/docs/simpleTags/index.php:1.1 pear/HTML_Template_Xipe/Xipe/docs/simpleTags/index.php:1.2 --- pear/HTML_Template_Xipe/Xipe/docs/simpleTags/index.php:1.1 Sun Nov 3 07:51:09 2002 +++ pear/HTML_Template_Xipe/Xipe/docs/simpleTags/index.php Tue Jan 14 17:08:20 2003 @@ -4,7 +4,7 @@ /* * include the files needed */ - require_once('SimpleTemplate/Engine.php'); + require_once('HTML/Template/Xipe.php'); /* * make template class instance @@ -16,7 +16,7 @@ // 'makePhpTags'=>false, 'logLevel'=>2 ); - $tpl = new SimpleTemplate_Engine($options); + $tpl = new HTML_Template_Xipe($options); /* * fill some vars @@ -38,4 +38,4 @@ $tpl->compile('index.tpl'); include($tpl->getCompiledTemplate()); -?> \ No newline at end of file +?> Index: pear/HTML_Template_Xipe/Xipe/docs/simpleTags/index.tpl diff -u pear/HTML_Template_Xipe/Xipe/docs/simpleTags/index.tpl:1.1 pear/HTML_Template_Xipe/Xipe/docs/simpleTags/index.tpl:1.2 --- pear/HTML_Template_Xipe/Xipe/docs/simpleTags/index.tpl:1.1 Sun Nov 3 07:51:09 2002 +++ pear/HTML_Template_Xipe/Xipe/docs/simpleTags/index.tpl Tue Jan 14 17:08:20 2003 @@ -1,20 +1,20 @@ -<SimpleTemplate> +<HTML_Template_Xipe> <options> <autoBraces value="false"/> </options> <preFilter> <!-- if 'class' is given it's assumed, that the class name - represents also the path name, so SimpleTemplate_Filter_SimpleTag - means the file is in SimpleTemplate/Filter/SimpleTag.php + represents also the path name, so HTML_Template_Xipe_Filter_SimpleTag + means the file is in HTML/Template/Xipe/Filter/SimpleTag.php which means (mostly) the file has to be in the include path! if 'classFile' is given it will be used for including the proper file - so it could also be classFile="SimpleTemplate/Filter/SimpleTag.php" + so it could also be classFile="HTML/Template/Xipe/Filter/SimpleTag.php" --> - <register class="SimpleTemplate_Filter_SimpleTag"/> + <register class="HTML_Template_Xipe_Filter_SimpleTag"/> </preFilter> -</SimpleTemplate> +</HTML_Template_Xipe> <html> @@ -81,4 +81,4 @@ </body> -</html> \ No newline at end of file +</html>
Index: pear/HTML_Template_Xipe/Xipe/docs/xmlConfig/config.xml diff -u pear/HTML_Template_Xipe/Xipe/docs/xmlConfig/config.xml:1.5 pear/HTML_Template_Xipe/Xipe/docs/xmlConfig/config.xml:1.6 --- pear/HTML_Template_Xipe/Xipe/docs/xmlConfig/config.xml:1.5 Sun Nov 3 07:51:36 2002 +++ pear/HTML_Template_Xipe/Xipe/docs/xmlConfig/config.xml Tue Jan 14 17:08:19 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" ?> -<simpletemplate> +<HTML_Template_Xipe> <options override="yes"> <delimiter begin="[" end="]"/> <autoBraces value="true"/> @@ -48,4 +48,4 @@ </preFilter> -</simpletemplate> +</HTML_Template_Xipe> Index: pear/HTML_Template_Xipe/Xipe/docs/xmlConfig/index.php diff -u pear/HTML_Template_Xipe/Xipe/docs/xmlConfig/index.php:1.6 pear/HTML_Template_Xipe/Xipe/docs/xmlConfig/index.php:1.7 --- pear/HTML_Template_Xipe/Xipe/docs/xmlConfig/index.php:1.6 Sun Nov 3 07:52:06 2002 +++ pear/HTML_Template_Xipe/Xipe/docs/xmlConfig/index.php Tue Jan 14 17:08:19 2003 @@ -1,45 +1,41 @@ <?php - ##################################### - # - # include the files needed - # - require_once('SimpleTemplate/Engine.php'); - require_once('SimpleTemplate/Filter/Basic.php'); + // + // include the files needed + // + require_once('HTML/Template/Xipe.php'); + require_once('HTML/Template/Xipe/Filter/Basic.php'); - ##################################### - # - # make template class instance - # + // + // make template class instance + // $options = array( 'templateDir' => dirname(__FILE__), 'enable-XMLConfig'=>true, 'logLevel' => 1 ); - $tpl = new SimpleTemplate_Engine($options); + $tpl = new HTML_Template_Xipe($options); -#$tpl->setOption('forceCompile',true); +//$tpl->setOption('forceCompile',true); - ##################################### - # - # make filter class instance - # -/* $tplFilter = new SimpleTemplate_Filter_Basic($tpl->getOptions()); + // + // make filter class instance + // +/* $tplFilter = new HTML_Template_Xipe_Filter_Basic($tpl->getOptions()); // pre filter $tpl->registerPrefilter(array(&$tplFilter,'removeHtmlComments')); $tpl->registerPrefilter(array(&$tplFilter,'removeCStyleComments')); $tpl->registerPrefilter(array(&$tplFilter,'addIfBeforeForeach')); // this filter makes the foreach-blocks conditional, so they are only shown if they contain data, see api-doc */ // post filter -# $tpl->registerPostfilter('trimLines',$tplFilter); -# $tpl->registerPostfilter('optimizeHtmlCode',$tplFilter); +// $tpl->registerPostfilter('trimLines',$tplFilter); +// $tpl->registerPostfilter('optimizeHtmlCode',$tplFilter); - ##################################### - # - # fill variables used in the template - # no assign-method necessary - # + // + // fill variables used in the template + // no assign-method necessary + // $advantages = array( 'clean HTML-code', 'ALL the power of PHP inside a template', 'a compiled template', @@ -58,11 +54,10 @@ - ##################################### - # - # show the template - # + // + // show the template + // $tpl->compile('index.tpl'); include($tpl->getCompiledTemplate()); -?> \ No newline at end of file +?> Index: pear/HTML_Template_Xipe/Xipe/docs/xmlConfig/index.tpl diff -u pear/HTML_Template_Xipe/Xipe/docs/xmlConfig/index.tpl:1.4 pear/HTML_Template_Xipe/Xipe/docs/xmlConfig/index.tpl:1.5 --- pear/HTML_Template_Xipe/Xipe/docs/xmlConfig/index.tpl:1.4 Sun Jun 2 18:38:56 2002 +++ pear/HTML_Template_Xipe/Xipe/docs/xmlConfig/index.tpl Tue Jan 14 17:08:19 2003 @@ -1,5 +1,8 @@ <!-- $Log: index.tpl,v $ + Revision 1.5 2003/01/14 22:08:19 cain + - properly convert to Xipe + Revision 1.4 2002/06/02 22:38:56 mccain - convert all config-tags to lower case, this is secure for now also if the Tree-package is not updated @@ -9,17 +12,17 @@ --> -<simpletemplate> +<HTML_Template_Xipe> <options override="yes"> <delimiter begin="[" end="]"/> <autoBraces value="true"/> <locale value="en"/> </options> -</simpletemplate> +</HTML_Template_Xipe> <html> <head> - <title>Example - SimpleTemplate, XML-configured</title> + <title>Example - HTML_Template_Xipe, XML-configured</title> <link href="../style.css" type="text/css" rel="StyleSheet"> </head> @@ -41,13 +44,13 @@ <a href="[$viewConfigXmlUrl]">config.xml</a> or/and in this <a href="[$viewTemplateCodeUrl]">template-file (index.tpl)</a>.<br> <code> -<simpletemplate><br> +<HTML_Template_Xipe><br> <options override="yes"><br> <delimiter begin="\[" end="\]"/><br> <autoBraces value="true"/><br> <locale value="en"/><br> </options><br> -</simpletemplate><br> +</HTML_Template_Xipe><br> </code> <br><br> @@ -99,7 +102,7 @@ </td> </tr> </table> -then you should try SimpleTemplate.<br><br> +then you should try HTML_Template_Xipe.<br><br> <br><br> @@ -118,7 +121,7 @@ <h2>all the currently possible and working xml-options - overview</h2> <code> -<simpletemplate><br> +<HTML_Template_Xipe><br> <options><br> <delimiter begin="\[" end="\]"/><br> <autoBraces value="true"/><br> @@ -128,9 +131,9 @@ <depends value="$someVar $anotherVar $_nextVar"/><br> </cache><br> </options><br> -</simpletemplate><br> +</HTML_Template_Xipe><br> </code> </body> -</html> \ No newline at end of file +</html> Index: pear/HTML_Template_Xipe/Xipe/docs/simpleTags/index.php diff -u pear/HTML_Template_Xipe/Xipe/docs/simpleTags/index.php:1.1 pear/HTML_Template_Xipe/Xipe/docs/simpleTags/index.php:1.2 --- pear/HTML_Template_Xipe/Xipe/docs/simpleTags/index.php:1.1 Sun Nov 3 07:51:09 2002 +++ pear/HTML_Template_Xipe/Xipe/docs/simpleTags/index.php Tue Jan 14 17:08:20 2003 @@ -4,7 +4,7 @@ /* * include the files needed */ - require_once('SimpleTemplate/Engine.php'); + require_once('HTML/Template/Xipe.php'); /* * make template class instance @@ -16,7 +16,7 @@ // 'makePhpTags'=>false, 'logLevel'=>2 ); - $tpl = new SimpleTemplate_Engine($options); + $tpl = new HTML_Template_Xipe($options); /* * fill some vars @@ -38,4 +38,4 @@ $tpl->compile('index.tpl'); include($tpl->getCompiledTemplate()); -?> \ No newline at end of file +?> Index: pear/HTML_Template_Xipe/Xipe/docs/simpleTags/index.tpl diff -u pear/HTML_Template_Xipe/Xipe/docs/simpleTags/index.tpl:1.1 pear/HTML_Template_Xipe/Xipe/docs/simpleTags/index.tpl:1.2 --- pear/HTML_Template_Xipe/Xipe/docs/simpleTags/index.tpl:1.1 Sun Nov 3 07:51:09 2002 +++ pear/HTML_Template_Xipe/Xipe/docs/simpleTags/index.tpl Tue Jan 14 17:08:20 2003 @@ -1,20 +1,20 @@ -<SimpleTemplate> +<HTML_Template_Xipe> <options> <autoBraces value="false"/> </options> <preFilter> <!-- if 'class' is given it's assumed, that the class name - represents also the path name, so SimpleTemplate_Filter_SimpleTag - means the file is in SimpleTemplate/Filter/SimpleTag.php + represents also the path name, so HTML_Template_Xipe_Filter_SimpleTag + means the file is in HTML/Template/Xipe/Filter/SimpleTag.php which means (mostly) the file has to be in the include path! if 'classFile' is given it will be used for including the proper file - so it could also be classFile="SimpleTemplate/Filter/SimpleTag.php" + so it could also be classFile="HTML/Template/Xipe/Filter/SimpleTag.php" --> - <register class="SimpleTemplate_Filter_SimpleTag"/> + <register class="HTML_Template_Xipe_Filter_SimpleTag"/> </preFilter> -</SimpleTemplate> +</HTML_Template_Xipe> <html> @@ -81,4 +81,4 @@ </body> -</html> \ No newline at end of file +</html>