mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-19 06:51:33 +02:00
- Make a start on completing the phpDoc comments for the template engine
- Tidy template engine code, mainly PHP5 stuff, made some methods void instead of just returning true - Add tests for the remaining untested compilation code git-svn-id: file:///svn/phpbb/trunk@9115 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -16,3 +16,5 @@ fail
|
||||
<!-- BEGINELSE -->
|
||||
pass
|
||||
<!-- END empty -->
|
||||
|
||||
<!-- DUMMY var -->
|
||||
|
@@ -9,3 +9,27 @@
|
||||
<!-- UNDEFINE $VALUE -->
|
||||
|
||||
{$VALUE}
|
||||
|
||||
<!-- DEFINE $VALUE -->
|
||||
|
||||
<!-- BEGIN loop -->
|
||||
<!-- DEFINE loop.$VALUE = loop.S_ROW_NUM -->
|
||||
{loop.$VALUE}
|
||||
<!-- UNDEFINE $VALUE -->
|
||||
{loop.$VALUE}
|
||||
<!-- UNDEFINE loop.$VALUE -->
|
||||
{loop.$VALUE}
|
||||
|
||||
<!-- END loop -->
|
||||
|
||||
<!-- DEFINE test.deep.defines.$VALUE = 12 * 12 -->
|
||||
|
||||
{test.deep.defines.$VALUE}
|
||||
|
||||
<!-- UNDEFINE $VALUE -->
|
||||
|
||||
{test.deep.defines.$VALUE}
|
||||
|
||||
<!-- UNDEFINE test.deep.defines.$VALUE -->
|
||||
|
||||
{test.deep.defines.$VALUE}
|
||||
|
@@ -10,6 +10,8 @@
|
||||
|
||||
<!-- IF 32 is div by 16 -->pass<!-- ELSE -->fail<!-- ENDIF -->
|
||||
|
||||
<!-- IF 10 is not even -->fail<!-- ELSE -->pass<!-- ENDIF -->
|
||||
|
||||
<!-- IF 24 == 24 -->pass<!-- ELSE -->fail<!-- ENDIF -->
|
||||
|
||||
<!-- IF 24 eq 24 -->pass<!-- ELSE -->fail<!-- ENDIF -->
|
||||
@@ -84,5 +86,3 @@
|
||||
<!-- IF 6 % 4 == 2 -->pass<!-- ELSE -->fail<!-- ENDIF -->
|
||||
|
||||
<!-- IF 24 mod 12 == 0 -->pass<!-- ELSE -->fail<!-- ENDIF -->
|
||||
|
||||
<!-- IF not (43 > 53) -->pass<!-- ELSE -->fail<!-- ENDIF -->
|
||||
|
3
tests/template/templates/lang.html
Normal file
3
tests/template/templates/lang.html
Normal file
@@ -0,0 +1,3 @@
|
||||
{L_VARIABLE}
|
||||
|
||||
{LA_VARIABLE}
|
@@ -13,3 +13,11 @@ noloop
|
||||
<!-- IF .loop == 2 -->
|
||||
loop
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- BEGIN loop -->
|
||||
<!-- BEGIN !block -->
|
||||
|
||||
loop#{loop.S_ROW_NUM}-block#{block.S_ROW_NUM}
|
||||
|
||||
<!-- END !block -->
|
||||
<!-- END loop -->
|
||||
|
Reference in New Issue
Block a user