Commit Graph
841 Commits
Author SHA1 Message Date
Justin Hileman 556b8e67b8 Clean up Source implementation a bit.
Make it work with new template class name logic.
2017-07-02 21:50:12 -07:00
Justin Hileman 1514e0c2cd Add stat() options to ProductionFilesystemLoader
* By default, continue to use `size` and `mtime` to invalidate template cache
 * Allow overriding to use any properties of `stat()`
 * Allow disabling stat entirely 
 * Add a Big Kid Pants disclaimer if you choose to go down this path
2017-07-02 16:30:46 -07:00
Justin Hileman ca19ba467e Initial production FilesystemSource implementation
See #290
2017-07-02 16:30:46 -07:00
Justin Hileman 31523441e1 Add delimiters option docs. 2017-07-02 14:46:56 -07:00
Justin Hileman ccb2b09317 Update generated class name for delimiters option.
Add some docs there, make it slightly easier to update the generated class name.
2017-07-02 14:39:07 -07:00
Justin Hileman 44489124a1 CS fixes. 2017-07-02 14:39:07 -07:00
Jager Mesh 329146d864 support for delimiters configuration 2017-07-02 14:39:07 -07:00
Justin Hileman b6a480df22 o right, test all the versions we support. 2017-06-29 06:35:34 -07:00
Justin Hileman 9e34408bda Add a failing test case for #322 2017-06-29 06:21:49 -07:00
Justin Hileman 40646e4aea Fix Travis PHP 7 and HHVM builds. 2017-06-29 06:02:16 -07:00
Justin Hileman 09241edd52 Use a local $blocksContext for each parent render.
... rather than a shared one per template / section / block that accidentally keeps old block context around.

Fixes #322
2017-06-29 00:13:59 -07:00
Justin Hileman 44baf86426 Suppress else when rendering empty block defaults. 2017-06-28 23:20:21 -07:00
Justin Hileman bd39afffef Merge pull request #305 from hcpss-banderson/feature/avoid-multuple-autoloaders
Prevent redundant autoloader registerations. Fixes #304
2017-01-05 00:32:42 -08:00
Brendan Anderson 7cb5f3f08f Prevent redundant autoloader registerations. Fixes #304 2017-01-02 10:22:37 -05:00
Justin Hileman 2bdb23db94 Merge branch 'release/2.11.1' into dev 2016-07-30 23:18:43 -07:00
Justin Hileman a3f6d55996 Merge branch 'release/2.11.1' 2016-07-30 23:18:27 -07:00
Justin Hileman 87e87e29fe Bump to v2.11.1 2016-07-30 23:18:19 -07:00
Justin Hileman 0803fa688b Fix test bootstrap in PHP < 5.5 2016-07-30 23:17:51 -07:00
Justin Hileman 94a72ec3d2 Merge branch 'release/2.11.0' into dev 2016-07-30 23:07:58 -07:00
Justin Hileman 789904e952 Merge branch 'release/2.11.0' 2016-07-30 23:07:43 -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 0bb2f76e2f Merge branch 'release/2.10.0' 2016-02-27 11:22:46 -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 c745b01956 Merge branch 'release/2.9.0' 2015-08-15 12:23:13 -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