Justin Hileman
64e5609d0e
Throw syntax exception for unclosed tags.
...
Fixes #395
2022-07-28 10:10:14 -04:00
Justin Hileman
076209772d
Explicitly treat null as an empty string when interpolating.
...
Fixes a deprecation warning on PHP 8.1+, and saves us some unnecessary escaping calls!
Thanks for your help @scr4bble :)
Fixes #383
2022-01-21 00:47:28 -05:00
Alain Schlesser
10a6c7ce52
Add tests
2021-12-12 08:51:15 -05:00
Justin Hileman
3a65e8adf3
Run spec inheritance tests.
2021-12-07 16:19:05 -05:00
Justin Hileman
799c0f40fd
Throw a Mustachey runtime exception from filesystem source.
...
Fixes #370
2021-04-28 10:25:13 -07:00
Justin Hileman
2540de2db2
Minor CS fix.
2017-07-03 00:25:56 -07:00
Justin Hileman
55e6ac81ba
Add validation to prevent empty template_class_prefix.
...
Fixes #298
2017-07-03 00:24:50 -07:00
Justin Hileman
933554098a
Improve prod filesystem loader test coverage.
2017-07-03 00:17:31 -07:00
Justin Hileman
14ff48584a
Add an example for anchored dot notation.
2017-07-02 23:50:42 -07:00
Justin Hileman
324f1db963
Bump copyright year.
2017-07-02 22:24:03 -07:00
Justin Hileman
b9f04e5d26
Custom delimiters tweaks.
...
* Add basic test for custom delimiters
* Keep default delims backwards compatible
2017-07-02 22:20:51 -07:00
Justin Hileman
ca19ba467e
Initial production FilesystemSource implementation
...
See #290
2017-07-02 16:30:46 -07:00
Justin Hileman
44489124a1
CS fixes.
2017-07-02 14:39:07 -07:00
Justin Hileman
9e34408bda
Add a failing test case for #322
2017-06-29 06:21:49 -07:00
Brendan Anderson
7cb5f3f08f
Prevent redundant autoloader registerations. Fixes #304
2017-01-02 10:22:37 -05:00
Justin Hileman
0803fa688b
Fix test bootstrap in PHP < 5.5
2016-07-30 23:17:51 -07:00
Justin Hileman
58f2401d4d
Minor code style fixes.
2016-07-30 22:58:58 -07:00
Justin Hileman
18a2adce3d
Remove all the extra spaces StyleCI wanted me to add :)
2016-07-30 22:39:43 -07:00
Olav Schettler
eeee916433
Protocol-based test with a protocol other than "file://"
2016-07-30 22:38:14 -07:00
Justin Hileman
01777faf6e
Various style cleanups.
...
* a bunch of small changes, courtesy of styleci
* update dates in file headers
* add file headers to files that are missing them
2016-07-30 17:57:19 -07:00
Justin Hileman
b2b282dfef
Code style fixes.
2016-05-19 00:06:45 -07:00
Justin Hileman
21d553fc02
Add a failing test case for #294
2016-05-18 22:43:41 -07:00
Chris Wilkinson
c858bb1f1a
Add exception chaining
2016-02-23 07:49:22 +00:00
Justin Hileman
865de4114a
Make LambdaHelper invokable.
...
Fixes #285
2016-02-14 08:43:38 -08:00
Justin Hileman
3c53736f09
Fix php-cs-fixer issue.
2016-02-14 08:37:59 -08:00
Justin Hileman
f3ae65eb33
Fix incorrect indent on interpolated lambdas.
...
Fixes #286
2016-02-14 08:37:41 -08:00
Justin Hileman
131cad6024
Add a failing test for #286
2016-02-13 15:36:35 -08:00
Justin Hileman
9cc21d63f7
Respect delimiter changes in lambda helper.
...
See janl/mustache.js#489
2015-10-12 12:48:21 -07:00
Justin Hileman
1b1757987a
Put anchored dots behind {{%ANCHORED-DOT}} pragma.
2015-08-15 12:18:04 -07:00
Justin Hileman
664895f4b9
Add a simple BLOCKS pragma example.
2015-08-15 09:38:32 -07:00
Justin Hileman
8be838e144
Bump copyright dates.
2015-08-15 09:23:54 -07:00
Justin Hileman
a5ad0a86db
Anchor dot notation context: {{ .foo }}
...
1. Given that {{ . }} resolves as the top of the context stack;
2. And when any falsey segment in a dotted name is encountered, the whole name yields '';
3. A name like {{ .name }} should imply {{ [top of stack].name }};
4. Thus, it must resolve as truthy only if a member of the top of the context stack matches name.
See mustache/spec#52
2015-08-15 09:09:42 -07:00
Justin Hileman
27a8bf0b69
Update to latest php-cs-fixer config.
...
Update to corresponding style-ci config options. Fix a few code style issues in the process.
2015-07-18 07:23:23 -07:00
Damyon Wiese
1e63ba5fd9
Add block functions to the template, so they can be evaluated lazily.
...
Fixes #264
2015-07-17 21:14:34 +08:00
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