Nathaniel Guse
943728d3ef
[feature/twig] Fix length replace in lexer
...
PHPBB3-11598
2013-07-01 14:58:20 -05:00
Nathaniel Guse
6c30441ad4
[feature/twig] Changing INCLUDEJS behavior slightly
...
Automatically parsing inline variables the same way it is done for
INCLUDE, INCLUDEPHP
PHPBB3-11598
2013-07-01 12:26:01 -05:00
Nathaniel Guse
42e3a4bfb9
[feature/twig] Add addslashes filter (to use on LA_ instead of escape)
...
To match previous parser behavior
PHPBB3-11598
2013-07-01 10:17:58 -05:00
Nathaniel Guse
9749405129
[feature/twig] Transform {L_, {LA_ to use the lang() function
...
PHPBB3-11598
2013-07-01 09:32:21 -05:00
Nathaniel Guse
2c55671767
[feature/twig] Fixing div by replacement
...
PHPBB3-11598
2013-07-01 09:19:30 -05:00
Nathaniel Guse
f18cbd50f0
[feature/twig] Fixing more stuff for DEFINE/INCLUDE
...
PHPBB3-11598
2013-06-29 19:19:18 -05:00
Nathaniel Guse
64963b5962
[feature/twig] Fixing DEFINE statements
...
PHPBB3-11598
2013-06-29 11:07:10 -05:00
Nathaniel Guse
abb7901edb
[feature/twig] New Twig filter, subset
...
This filter grabs a subset of a loop for output (according to past
functionality).
PHPBB3-11598
2013-06-28 15:40:30 -05:00
Nathaniel Guse
09ed0dd7bc
[feature/twig] Replace BEGIN with Twig for using Lexer
...
No longer using the begin tokenparser/node as it did not allow proper
handling of <!-- BEGIN !foo, <!-- BEGIN foo(0,2). Now the lexer will
use regular expressions to handle that correctly and replace it with Twig's
for token
Also fixing <!-- IF .foo as I discovered it evaluates to if sizeof(foo)
PHPBB3-11598
2013-06-26 12:30:59 -05:00
Nathan Guse
1a0819bdc4
[feature/twig] Changing INCLUDEJS behavior
...
Was:
<!-- INCLUDEJS template/foo.js -->
Now:
<!-- INCLUDEJS T_TEMPLATE_PATH ~ '/foo.js' -->
Reasons for this:
1. INCLUDEJS is 3.1-dev only
2. INCLUDEJS has odd behavior to begin with (arbitrary setting root path
to styles/name/ directory)
3. INCLUDEJS could not include files from outside directories or anywhere
else
4. It was easier to change INCLUDEJS behavior to something more flexible
and useful than hack around it to make it work as it was with Twig.
PHPBB3-11598
2013-06-24 13:32:31 -05:00
Nathan Guse
74f19830f3
[feature/twig] Some additional operators, more stuff for IF
...
PHPBB3-11598
2013-06-12 12:48:37 -05:00
Nathan Guse
612dbad63f
[feature/twig] Fixing IF .blah correctly
...
PHPBB3-11598
2013-06-11 10:57:00 -05:00
Nathan Guse
eac3c1f75c
[feature/twig] BEGIN loops now work
...
PHPBB3-11598
2013-06-10 11:57:51 -05:00
Nathan Guse
15114067e6
[feature/twig] Replace phpBB template code with Twig syntax, then parse w/Twig
...
Fixing begin token/node, adding includejs token/node
PHPBB3-11598
2013-06-10 11:17:11 -05:00
Nathan Guse
b775f67128
[feature/twig] More work on the lexer
...
Committing what I have now to save it as I'm trying another method next
PHPBB3-11598
2013-06-10 10:00:22 -05:00
Nathan Guse
9f8f500ba3
[feature/twig] Working on DEFINE
...
PHPBB3-11598
2013-06-10 00:59:06 -05:00
Nathan Guse
87cc8af265
[feature/twig] Support our old INCLUDE statements (no quotes)
...
Better code for handling IF .blah
PHPBB3-11598
2013-06-09 23:32:39 -05:00
Nathan Guse
1da4be04b0
[feature/twig] WIP extension/lexer/some tokenparsers/nodes
...
PHPBB3-11598
2013-06-09 22:11:12 -05:00