Dariusz Rumiński
d07cac322c
update CS by php-cs-fixer
2014-08-17 00:29:05 +02:00
Justin Hileman
f696e7afa6
Fix incorrect or missing type annotations.
2014-03-25 07:31:04 -07:00
Justin Hileman
22a47452da
How embarrassing.
...
I keep writing 2013 on my copyright notices.
2014-03-13 22:34:44 -07:00
Justin Hileman
0d161cc7d2
Bump copyright dates.
2013-09-18 12:10:17 -07:00
Justin Hileman
87a734e60c
Update Compiler for new Parser output.
2013-05-15 13:37:05 -07:00
Justin Hileman
c5c36ddd2b
Change entity_flags variable names to match PSR-2.
2013-04-27 16:04:05 -07:00
Pixie
311f337856
Allow passing in the $type parameter of htmlspecialchars()
2013-04-27 17:36:51 -05:00
Justin Hileman
12d6884b4b
Improve test coverage for custom escapers and charsets.
2013-01-26 16:48:35 -08:00
Justin Hileman
a777c587f2
Add resolveValue method to base Template.
...
DRYs up compiled class output a bit and makes things FASTER!
Speeds up value resolution by 33% for primitives, 25% for methods and properties, and 10% for lambdas.
2013-01-26 16:19:06 -08:00
Justin Hileman
cf76a4b8f9
Remove unused escape param from renderInternal
2013-01-26 14:49:14 -08:00
Justin Hileman
0436c59477
Improve Mustache exception types, catchability.
...
* Subclass common exception types (runtime, logic, invalid argument).
* Add new "unknown x" exceptions for filters, helpers and templates.
* Make all Mustache exceptions implement Mustache_Exception interface… Gotta catch 'em all!
2013-01-20 10:35:55 -08:00
Justin Hileman
2448992cc8
Update to proposed PSR-1 coding standard.
...
* 4 space (no tab) indent
* K&R-style braces
2012-05-01 22:03:39 -07:00
Justin Hileman
9316775ccb
Fix test failures in PHP 5.2.x
2012-05-01 10:19:03 -07:00
Justin Hileman
2328615772
Change text tokens to proper tokens (instead of strings)
2012-03-26 19:34:55 -07:00
Justin Hileman
bec9ce8448
Add support for PHP 5.2.x
2012-03-17 23:05:52 -07:00
Justin Hileman
23a4bb04f2
Add custom variable escapers.
...
cf. #86
* Add `escape` Mustache constructor option. Expects something callable.
* Update Compiler to either inline `htmlspecialchars` (old way) or a call to the custom escaper callback.
* Update Compiler to statically compile charset.
* Update template classname to account for charset and custom compilers.
2012-03-14 20:07:16 -07:00
Justin Hileman
50b3594458
Fix failing partials example.
...
Only prepend $indent to the first output on a new line.
2012-03-14 17:41:38 -07:00
Justin Hileman
367013f01c
2x faster. Who needs a Buffer instance, anyway?
2012-03-14 00:00:00 -07:00
Justin Hileman
a196ac8dab
Clean up Tokenizer constants.
...
Remove a bunch of hardcoded strings from everywhere.
2012-03-05 14:25:32 -08:00
Justin Hileman
eed4400afb
Add file header docblocks.
2012-03-01 07:17:13 -08:00
Justin Hileman
0034bf657b
Add test coverage for Mustache.php 2.0
...
Update legacy tests for new codebase.
2012-02-29 19:12:22 -08:00