1
0
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:
Chris Smith
2008-11-24 21:59:33 +00:00
parent 9954d9c29f
commit 332521a369
8 changed files with 192 additions and 39 deletions

View File

@@ -16,3 +16,5 @@ fail
<!-- BEGINELSE -->
pass
<!-- END empty -->
<!-- DUMMY var -->

View File

@@ -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}

View File

@@ -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 -->

View File

@@ -0,0 +1,3 @@
{L_VARIABLE}
{LA_VARIABLE}

View File

@@ -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 -->