preparation release
This commit is contained in:
commit
f5e3a62ee8
196 changed files with 64314 additions and 0 deletions
43
HTML/Template/tests/test_function.html.phpt
Normal file
43
HTML/Template/tests/test_function.html.phpt
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
--TEST--
|
||||
Template Test: function.html
|
||||
--FILE--
|
||||
<?php
|
||||
require_once 'testsuite.php';
|
||||
compilefile('function.html');
|
||||
|
||||
--EXPECTF--
|
||||
===Compiling function.html===
|
||||
|
||||
|
||||
|
||||
===Compiled file: function.html===
|
||||
<?php
|
||||
function _html_template_flexy_compiler_flexy_flexy_test1($t,$this) {
|
||||
?>this is the contents of test1<?php
|
||||
}
|
||||
?>
|
||||
<H1>Example of function block definitions</H1>
|
||||
|
||||
|
||||
<?php if ($t->false) {?><table>
|
||||
<tr><td>
|
||||
|
||||
</td></tr>
|
||||
</table><?php }?>
|
||||
<table>
|
||||
<tr><td>
|
||||
<?php if (function_exists('_html_template_flexy_compiler_flexy_flexy_test1')) _html_template_flexy_compiler_flexy_flexy_test1($t,$this);?>
|
||||
<?php if (function_exists('_html_template_flexy_compiler_flexy_flexy_'.$t->a_value)) call_user_func_array('_html_template_flexy_compiler_flexy_flexy_'.$t->a_value,array($t,$this));?>
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
===With data file: function.html===
|
||||
<H1>Example of function block definitions</H1>
|
||||
|
||||
|
||||
<table>
|
||||
<tr><td>
|
||||
this is the contents of test1 </td></tr>
|
||||
</table>
|
||||
Loading…
Add table
Add a link
Reference in a new issue