Commit Graph
770 Commits
Author SHA1 Message Date
Justin Hileman 94a72ec3d2 Merge branch 'release/2.11.0' into dev 2016-07-30 23:07:58 -07:00
Justin Hileman cf4e4c7857 Bump to v2.11.0 2016-07-30 23:07:36 -07:00
Justin Hileman d4bdf110f9 Always check is_dir() and file_exists() with filesystem streams. 2016-07-30 22:59:23 -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
Olav Schettler fee4544785 Allow to load non-local templates 2016-07-30 22:38:07 -07:00
Justin Hileman 6f6e3b9ddb Add StyleCI badge to README. 2016-07-30 18:00:31 -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 41edfcb9e2 Drop the php-cs-fixer business on Travis.
That's what StyleCI is for.
2016-07-30 17:51:14 -07:00
Justin Hileman 174f0da5ce Switch to friendsofphp's cs fixer package 2016-07-30 17:44:10 -07:00
Justin Hileman b2b282dfef Code style fixes. 2016-05-19 00:06:45 -07:00
Justin Hileman 051f857197 Support parent tags and block args as direct children of blocks and sections.
Fixes #294

Drive-by: rename blocks context variable to something more descriptive.
2016-05-18 22:45:46 -07:00
Justin Hileman 21d553fc02 Add a failing test case for #294 2016-05-18 22:43:41 -07:00
Justin Hileman 1de7898200 Fix incorrect method name case. 2016-05-18 21:48:17 -07:00
Justin Hileman 4aa31aca56 Merge pull request #288 from thewilkybarkid/exception-previous
Add exception chaining
2016-03-19 00:35:21 -07:00
Justin Hileman f7b969acc8 Merge branch 'release/2.10.0' into dev 2016-02-27 11:22:51 -08:00
Justin Hileman a9dd4c62ae Bump to v2.10.0 2016-02-27 11:21:57 -08: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 4dd6383a3d Use latest PHPUnit dev dependency. 2016-02-14 08:37:53 -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 5353b36ec6 Merge branch 'release/2.9.0' into dev 2015-08-15 12:23:20 -07:00
Justin Hileman eff33aff4e Bump to v2.9.0 2015-08-15 12:18:51 -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 7b81206923 Remove create_example script.
I'm not sure it has ever been used, and it's not all that difficult to create one manually.
2015-08-15 09:22:13 -07:00
Justin Hileman 72b9693912 Merge pull request #129 from bobthecow/feature/anchor-dot-context
Add "anchored dot notation"
2015-08-15 09:19:48 -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 ba028d1dcf We won't be needing this anymore. 2015-07-18 07:30:38 -07:00
Justin Hileman 6b16313ced Update travis-ci environments.
hhvm-nightly is no more, but there is a php 7.0. Will it pass? The suspense is killing me!
2015-07-18 07:28:44 -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
Justin Hileman d8da5f1d99 Clean up compiled PHP coding style. 2015-07-18 01:12:21 -07:00
Justin Hileman 91c71191c8 Merge remote-tracking branch 'damyon/PULL_264' into dev 2015-07-18 01:11:59 -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 a066f27e66 Merge branch 'release/2.8.0' into dev 2015-03-31 23:39:06 -07:00
Justin Hileman 64c28cc73e Merge branch 'release/2.8.0' 2015-03-31 23:37:33 -07:00
Justin Hileman 46facc76b5 Bump to v2.8.0 2015-03-31 23:37:28 -07:00
Justin Hileman c4b1712d98 Merge branch 'fix/template-inheritance-whitespace' into dev 2015-03-31 23:24:25 -07:00
Justin Hileman 7b57d9b1d2 Merge pull request #256 from keradus/cs
CS update
2015-03-31 23:09:23 -07:00
Dariusz Ruminski 47eb13cb26 CS update 2015-03-28 17:54:07 +01:00
Justin Hileman 7cb9fdff6a Never indent block arg sections.
Fixes #253
2015-03-03 10:05:27 -08: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
Justin Hileman 4cd8521341 Merge pull request #248 from keradus/phpdoc_no_empty_return
apply phpdoc_no_empty_return fixer
2015-03-02 21:45:36 -08:00