Commit Graph
249 Commits
Author SHA1 Message Date
Damyon Wiese 11ad87ae2d Lazily evaluate blocks pragmas.
The specific example in the docs page about what does not work, is exactly what we need
to make this useful.

Fixes #264
2015-07-17 11:58:36 +08:00
Justin Hileman c4b1712d98 Merge branch 'fix/template-inheritance-whitespace' into dev 2015-03-31 23:24:25 -07:00
Dariusz Ruminski 47eb13cb26 CS update 2015-03-28 17:54:07 +01:00
Mike Sherov 067fd6c33e Failing Test For Inheritance Indentation inside a replacement variable. 2015-03-03 11:54:21 -05:00
Justin Hileman 22611a957c CS fixes.
Plus add config for StyleCI.
2015-03-02 21:53:03 -08:00
Dariusz Ruminski ea08692253 apply no_empty_lines_after_phpdocs fixer 2015-02-26 21:35:27 +01:00
Dariusz Rumiński 74d5dc677c update PHP-CS-Fixer to 1.0 2014-11-15 14:26:01 +01:00
Dariusz Rumiński 9340b3eed1 Fix multiline array CS 2014-09-14 18:21:08 +02:00
Dariusz Rumiński 6b5a695e9d strict comparisons 2014-09-06 01:23:34 +02:00
Dariusz Rumiński 1319f0486d concatenation with spaces around 2014-09-06 01:21:20 +02:00
Dariusz Rumiński 0007be44cd indent fixes 2014-09-04 20:44:59 +02:00
Justin Hileman f34f6699c2 Increase test coverage.
… fix a bug exposed by increased test coverage :-/
2014-08-25 11:18:09 -07:00
Justin Hileman 3f492a1bf5 Add a simple FILTERS pragma example.
This includes examples of both section and interpolation filters.
2014-08-22 22:06:02 -07:00
Justin Hileman 4decec3c0e Reformat code so php-cs-fixer doesn’t keep breaking it. 2014-08-18 18:33:30 -07:00
Justin Hileman 89b322c3e8 Merge pull request #221 from keradus/cs
update CS by php-cs-fixer
2014-08-18 17:08:29 -07:00
Justin Hileman c3e976a328 Merge branch 'fix/nested-partial-whitespace' into dev 2014-08-16 15:41:47 -07:00
Dariusz Rumiński d07cac322c update CS by php-cs-fixer 2014-08-17 00:29:05 +02:00
Justin Hileman bd3c7798c3 Merge branch 'feature/pragma-blocks' into dev 2014-08-15 23:18:10 -07:00
Justin Hileman 5d77f4de9a Move failing nested partial example into a test case.
See #214
2014-08-07 10:40:06 -07:00
Mike Sherov 114477811c Add failing test For extra whitespace in nested partials. 2014-08-07 10:28:19 -07:00
Dariusz Rumiński 3d25e12fe1 cs fixes 2014-07-24 18:37:55 +02:00
Justin Hileman 349b58b8ca Throw inheritance behind a BLOCKS pragma.
Update tests, known pragmas, and parsing.
2014-06-26 23:31:41 -07:00
Justin Hileman dd53137ae1 Add missing method docs, minor code cleanup. 2014-06-26 23:05:44 -07:00
Justin Hileman 7aee026403 Add default pragma option to Mustache_Engine.
Pragmas specified in the Mustache_Engine constructor will be enabled in all templates, regardless of the presence of pragma tags in individual templates.
2014-06-26 22:45:23 -07:00
Justin Hileman 4c4c6f156b Merge remote-tracking branch 'jazzdan/dev' into feature/template-inheritance
Conflicts:
	src/Mustache/Compiler.php
	test/Mustache/Test/TokenizerTest.php
2014-06-26 21:51:03 -07:00
Justin Hileman e8897b1228 Merge pull request #209 from smarden1/pr/even_triple_braces
Uneven braces in triples are incorrectly swallowing a character [repost of 208]
2014-06-20 12:25:10 -07:00
steve 6ba77964b8 uneven braces with custom delimiters throws Mustache_Exception_SyntaxException 2014-06-19 23:25:46 -07:00
steve c037b31d25 add test coverage to ensure that custom delimiters don't swallow trailing characters after they close 2014-06-19 20:51:02 -07:00
steve be19ebf5b2 add DateTimeZone UTC to DateTime calls in FiltersTest 2014-06-19 08:04:40 -07:00
steve 868b5b49eb starting triple braces without ending triple braces throws an error - previously this was swallowing an additional character 2014-06-18 16:53:34 -07:00
Dariusz Rumiński d2f8944798 Add few spaces around concatenations 2014-05-15 09:32:57 +02:00
Dariusz Rumiński 39cadaca9c Remove redundant semicolons 2014-05-14 18:07:19 +02:00
Dariusz Rumiński be10fd7ab2 include FiveThree part into classname Mustache_Test_Functional_ClassWithLambda, supplement to 07e96b2a19 2014-05-14 18:05:17 +02:00
Dan Miller 56713e560f ensure that text is ignored outside of a block inside of a parent tag 2014-04-14 17:20:14 +00:00
Dan Miller efae42978d Adding data provider to test legal and illegal syntax inside of a parent tag 2014-04-11 16:46:27 +00:00
Dan Miller d27840f8ef Throw exception when something other than text or block tags are encountered inside of a parent tag. Other small cleanups 2014-04-09 16:15:05 +00:00
Dan Miller af8a62c5e2 Separate stacks are necessary for blocks to be resolved independently of variables. Renamed parent_* to block_*. 2014-04-08 21:02:23 +00:00
Dan Miller ebb7fda2e5 removing deprecated code for loading non-existent inheritance tests from the mustache spec 2014-04-04 20:45:21 +00:00
Dan Miller db14a6c863 hogan.js style template inheritance 2014-04-04 18:41:24 +00:00
Justin Hileman b8b156d3cc Refactor to remove strict callables test duplication. 2014-03-25 19:35:56 -07:00
Justin Hileman 125873a8e0 Remove unused $partialData. 2014-03-25 19:28:36 -07:00
Justin Hileman c10c966e60 Refactor to remove duplicate StreamLogger test code 2014-03-25 19:22:34 -07:00
Justin Hileman 402f5013dc Refactor duplication out of Mustache injection test. 2014-03-25 19:16:29 -07:00
Justin Hileman ad0204c372 Combine FiltersTest and SectionFiltersTest
They’re basically duplicates, so this clears up a bunch of code :)
2014-03-25 19:04:48 -07:00
Justin Hileman 2abbc4b35c Refactor away engine logger test duplication. 2014-03-25 18:44:58 -07:00
Justin Hileman 0b85c9daff Refactor out section callback test duplication. 2014-03-25 18:38:21 -07:00
Justin Hileman ada9876c18 Refactor out test code duplication
(enable/disable lambda template cache test)
2014-03-25 18:33:26 -07:00
Justin Hileman b61af6e4e8 Add (failing) test case for disabling lambda cache. 2014-03-25 18:15:52 -07:00
Justin Hileman 085729aa27 remove old test annotation. 2014-03-25 18:15:31 -07:00
Justin Hileman fdff8a4d15 Let’s not use Composer’s autoload, since it fails in 5.2
This reverts commit af737f4cc7.
This reverts commit 84a4ff5b16.
2014-03-25 10:50:43 -07:00