Commit Graph

20 Commits

Author SHA1 Message Date
mAAdhaTTah
c25b7ee150 Add conditional to check if section
This was causing an issue when the section name was also used as a
variable in the block. When walking back up the block to find the open
tag, because it only checked if the name matched, the parser would
see the variable usage as the opening block and drop the rest of the
block. This checks explicitly whether it's a section or inverted block
before doing the left/right trim logic.
2016-12-12 08:05:58 -05:00
hamidr
86ebab9dba Merge remote-tracking branch 'origin/develop' 2016-07-31 14:30:53 +04:30
Christian Blanquera
08f4328f9d phpcs
files i made no changes to, but got cs errors on.. not sure why. Just
let me know what the protocol is for this one.
2015-09-21 20:23:20 +08:00
Pascal Thormeier
6ef6b7bc08 Remove last var_export statements
Got overlooked while refactoring
2015-06-19 11:43:58 +02:00
Pascal Thormeier
e1956be453 CS fixes 2015-06-17 16:11:50 +02:00
Pascal Thormeier
0111689f47 Fix and add tests
Also use var_export in exceptions in case array/object/etc get passed
2015-06-17 15:50:10 +02:00
Pascal Thormeier
0a908fb6a1 Improve error reporting in case of exception
Make Exception messages more verbose
2015-06-17 14:18:32 +02:00
fzerorubigd
84c6e3006c
fix #71 2014-07-11 21:05:26 +04:30
fzerorubigd
a68318f4c5
Support whitespace deletion
Need more test :)
fixes #61
2014-07-04 03:36:14 +04:30
behrooz shabani (everplays)
413585f9ce Added missing copyright notices. fixes #57 2014-03-17 00:58:50 +03:30
fzerorubigd
f2a30c6ef1
More test for better coverage 2013-12-06 19:17:27 +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
behrooz shabani (everplays)
e513648544 use PHP CodeSniffer's coding standards 2013-11-05 14:12:44 +03:30
behrooz shabani (everplays)
8ed1ebd051 Merge branch 'master' of github.com:virtuecenter/handlebars.php
Conflicts:
	src/Handlebars/Template.php
2013-11-05 10:58:02 +03:30
Dan Fellars
c179a4ce9b Converted License from GPLv3 to MIT 2013-10-18 10:07:27 -06:00
webuser
9319f3d89c missed a few namespace issues 2013-09-21 15:41:17 -04:00
webuser
82a9faf3eb add namespace, remove underscores from class names 2013-09-21 15:10:30 -04:00
fzerorubigd
8d266bfcd8 return {{^var}} handler 2012-11-29 12:20:49 +03:30
fzerorubigd
2af461c7f6 initial commit 2012-10-25 19:00:10 +03:30