Commit Graph

114 Commits

Author SHA1 Message Date
Chris Gray
a44777f52f Added Tests and changed internal representation of quoted string literals from strangely quoted string to an instance of \Handlebars\String 2014-01-20 09:57:16 -06:00
Chris Gray
49dcbb2573 Changed Internal representation of quoted string literals to be an instance of \Handlebars\String instead of strangely quoted string. 2014-01-20 09:04:31 -06:00
Chris Gray
054f2c75ee Added tests for .length property on arrays 2014-01-19 21:08:38 -06:00
Chris Gray
3603a00ee6 Added support for .length as an alias to count on the current context in Context::_findVariableInContext 2014-01-19 21:07:03 -06:00
Chris Gray
1bbe32b56e Updated docblock 2014-01-19 21:06:22 -06:00
Chris Gray
415e642351 Fixed to conform to coding standards 2014-01-17 00:46:39 -06:00
Chris Gray
78974dee1b Fixed edge case in Context::get where trim was eating trailing escaped quote in a quoted literal string that ends with an escaped quote 2014-01-17 00:30:14 -06:00
Chris Gray
da1cf77c58 Added string literal support in Context::get and added Template::parseArguments to ease plugin development 2014-01-16 23:28:48 -06:00
cgray
1119784549 Update Context::get to resolve @key and @index 2014-01-16 12:41:02 -06:00
Behrooz Shabani
0f65f12db3 Merge pull request #34 from craigjbass/patch-1
Allow each helper to accept PHP Generators
2014-01-16 06:58:48 -08:00
Craig Bass
689c9e51de Allow each helper to accept PHP Generators 2014-01-16 13:29:10 +00:00
behrooz shabani (everplays)
94fbc01217 first part is going to be used, so ignore the rest 2013-12-13 23:09:06 +03:30
behrooz shabani (everplays)
df6ecac7df extracted processing of sections from variable processing 2013-12-13 23:04:31 +03:30
behrooz shabani (everplays)
300f44e8c6 fixed a typo 2013-12-13 22:29:54 +03:30
fzerorubigd
ff503a90a2
add more test 2013-12-06 21:32:36 +03:30
fzerorubigd
fa65e99dfe
fix a bug in context when get invalid variable in strict mode 2013-12-06 20:43:51 +03:30
fzerorubigd
f2a30c6ef1
More test for better coverage 2013-12-06 19:17:27 +03:30
fzerorubigd
82ea9f958d
add support for inline helper without #
fix #28
2013-12-06 18:00:03 +03:30
fzerorubigd
000bdd6e74
change default helpers to anonymus function again 2013-11-21 23:41:20 +03:30
fzerorubigd
f13c6a3cef
add some more tests 2013-11-21 20:43:52 +03:30
fzerorubigd
1398da791d
whoops :) 2013-11-21 20:01:31 +03:30
behrooz shabani (everplays)
80e9f71b82 there's no need for building php-52 branch in travis 2013-11-19 18:30:23 +03:30
behrooz shabani (everplays)
a4e56e3f60 allow accessing stuff via 0 index, fixes #30 2013-11-19 18:18:32 +03:30
Behrooz Shabani
4f0578c048 Merge pull request #29 from craigjbass/master
Fix bug using array $baseDirs
2013-11-14 21:26:41 -08:00
Craig Bass
df1d4fb98d Fix crybaby tavis.
(Seriously?)
2013-11-15 01:25:02 +00:00
Craig Bass
4bbb9e3a6b update authorship 2013-11-15 01:00:49 +00:00
Craig Bass
3ee0e13caf Fix bug using array $baseDir
* Corrected issue resulting from array constructor
* Corrected issue resulting from invalid clean-up of references
2013-11-14 18:07:42 +00:00
fzerorubigd
c7ee33a84d
fix tests 2013-11-08 19:40:32 +03:30
fzerorubigd
4da298a4d6
add some other test 2013-11-08 19:25:01 +03:30
fzerorubigd
25190010e1
fix a bug with helpers and add a test for that 2013-11-08 19:00:54 +03:30
fzerorubigd
8938fdc5c3
Another cleanup 2013-11-08 18:48:19 +03:30
fzerorubigd
287a8da70c
fix indent of switch 2013-11-08 16:24:11 +03:30
fzerorubigd
d1856a4ed3
Cleanup. 2013-11-08 15:00:49 +03:30
fzerorubigd
131f15133d
add inherit: true 2013-11-08 11:16:58 +03:30
fzerorubigd
614afe64e6
add Code coverage badges 2013-11-08 11:12:03 +03:30
fzerorubigd
de8e0a4c96 Merge branch 'master' of github.com:XaminProject/handlebars.php 2013-11-08 11:03:08 +03:30
fzerorubigd
8fea74b892
add scrutinizer config 2013-11-08 10:46:12 +03:30
behrooz shabani (everplays)
f1982684ff added php 5.5 to testing enviroments 2013-11-08 00:16:13 +03:30
behrooz shabani (everplays)
df27950e56 added CodeSniffer's syntax check as part of travis tests 2013-11-08 00:13:55 +03:30
behrooz shabani (everplays)
795792791e use phpunit 3.7.x to have php 5.3.x compatibility 2013-11-08 00:12:44 +03:30
behrooz shabani (everplays)
7fad993a67 use version of phpunit that's specified in composer.json 2013-11-08 00:12:09 +03:30
behrooz shabani (everplays)
ef5cd2cb25 replaced require with include as phpcs complained 2013-11-08 00:09:47 +03:30
behrooz shabani (everplays)
4caef1d806 fixed a minor issue in bootstrap of tests 2013-11-07 23:31:43 +03:30
fzerorubigd
9b7dc356e6
fix paths in tests/bootstrap 2013-11-07 22:22:34 +03:30
fzerorubigd
3dc0539742
use internal autoloader for tests 2013-11-07 22:17:05 +03:30
fzerorubigd
fb7f4f43a5
Add travis-ci build status
Remove php 5.2 from travis.xml
2013-11-07 22:11:34 +03:30
fzerorubigd
7e398d41d9
Add some test, need more test :) just for start
address #22
2013-11-07 21:47:57 +03:30
behrooz shabani (everplays)
b8119d4acd use php syntax highlighter for code example 2013-11-05 15:47:05 +03:30
behrooz shabani (everplays)
71768d0a0b added installation/usage/contribution/license sections 2013-11-05 15:44:14 +03:30
behrooz shabani (everplays)
17ed55111b made autoloader compatible with namespaces 2013-11-05 15:37:20 +03:30