Behrooz Shabani 
							
						 
					 
					
						
						
						
						
							
						
						
							37b377b9df 
							
						 
					 
					
						
						
							
							Merge pull request  #136  from cblanquera/feature-register-helper-2  
						
						 
						
						... 
						
						
						
						Feature: registerHelper() 
						
					 
					
						2016-07-30 11:04:30 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Christian Blanquera 
							
						 
					 
					
						
						
						
						
							
						
						
							08ad533e81 
							
						 
					 
					
						
						
							
							case for the right String Class  
						
						 
						
						... 
						
						
						
						Not sure where i got StringWrapper from. We now don’t need to case for
this in the `registerHelper()` method 
						
					 
					
						2015-09-26 20:03:52 +08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Christian Blanquera 
							
						 
					 
					
						
						
						
						
							
						
						
							1ba7cdf108 
							
						 
					 
					
						
						
							
							added case descriptions and used an int example  
						
						 
						
						
						
					 
					
						2015-09-23 23:34:42 +08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Christian Blanquera 
							
						 
					 
					
						
						
						
						
							
						
						
							407732cef3 
							
						 
					 
					
						
						
							
							better registerHelper Tests  
						
						 
						
						
						
					 
					
						2015-09-23 23:23:53 +08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								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  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Christian Blanquera 
							
						 
					 
					
						
						
						
						
							
						
						
							0070ad79c0 
							
						 
					 
					
						
						
							
							phpcs approval  
						
						 
						
						... 
						
						
						
						“oh the spacing!” 
						
					 
					
						2015-09-21 18:49:08 +08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Christian Blanquera 
							
						 
					 
					
						
						
						
						
							
						
						
							33c76738b4 
							
						 
					 
					
						
						
							
							Added registerHelper  
						
						 
						
						... 
						
						
						
						I did it in such a way where I’m not messing with the other methods or
classes to get what I wanted.
I realize that there maybe no need for the child context, however when
trying a permutation of
```
'fn' => function($data = null) use($context, $template) {
    $context->push($context->last());
    if(is_array($data)) {
   		$context->push($data);
   	}
    $template->setStopToken('else');
    $buffer = $template->render($context);
    $template->setStopToken(false);
    $template->discard($context);
    if(is_array($data)) {
   		$context->pop();
   	}
    $context->pop();
    return $buffer;
}
```
It didn’t parse the `../../../test` correctly in the test. I figured
that the ChildContext is a nice pattern overall and doesn’t interfere
with the rest of the package anyways… 
						
					 
					
						2015-09-21 17:50:00 +08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Christian Blanquera 
							
						 
					 
					
						
						
						
						
							
						
						
							57d00e6e82 
							
						 
					 
					
						
						
							
							What to expect...  
						
						 
						
						... 
						
						
						
						We should also probably check for looping capabilities as well. 
						
					 
					
						2015-09-21 17:49:17 +08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Fzerorubigd 
							
						 
					 
					
						
						
						
						
							
						
						
							a1b82c528b 
							
						 
					 
					
						
						
							
							Merge pull request  #92  from Mibew/use_args_class  
						
						 
						
						... 
						
						
						
						Pass an instance of \Handlebars\Arguments to a helper
-- it has some sort of BC break. need to be verified before rebasing this into master 
						
					 
					
						2014-09-20 13:57:35 +04:30  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Dmitriy Simushev 
							
						 
					 
					
						
						
						
						
							
						
						
							19c78888ce 
							
						 
					 
					
						
						
							
							Pass an instance of \Handlebars\Arguments to a helper  
						
						 
						
						
						
					 
					
						2014-09-20 08:59:45 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								fzerorubigd 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							592a01c4b9 
							
						 
					 
					
						
						
							
							add gtags file into ignore list (Back to #emacs again!)  
						
						 
						
						
						
					 
					
						2014-09-20 10:30:12 +04:30  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Dmitriy Simushev 
							
						 
					 
					
						
						
						
						
							
						
						
							e863d7af80 
							
						 
					 
					
						
						
							
							Make subexpressions play nice with context  
						
						 
						
						
						
					 
					
						2014-09-15 09:19:21 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								fzerorubigd 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							3bb6dc09a4 
							
						 
					 
					
						
						
							
							another try  
						
						 
						
						
						
					 
					
						2014-09-13 17:17:09 +04:30  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								fzerorubigd 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							343dc48637 
							
						 
					 
					
						
						
							
							try to fix coverage report  
						
						 
						
						
						
					 
					
						2014-09-13 13:58:01 +04:30  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Fzerorubigd 
							
						 
					 
					
						
						
						
						
							
						
						
							d146b0a7f4 
							
						 
					 
					
						
						
							
							Merge pull request  #86  from Mibew/integer_helper_arguments  
						
						 
						
						... 
						
						
						
						Treat integer helper arguments as literals 
						
					 
					
						2014-09-13 09:00:08 +04:30  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Dmitriy Simushev 
							
						 
					 
					
						
						
						
						
							
						
						
							934566765e 
							
						 
					 
					
						
						
							
							Treat integer helper arguments as literals  
						
						 
						
						
						
					 
					
						2014-09-10 12:31:23 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Fzerorubigd 
							
						 
					 
					
						
						
						
						
							
						
						
							f0cc404283 
							
						 
					 
					
						
						
							
							Merge pull request  #84  from Mibew/fix_zero_args_string_parsing  
						
						 
						
						... 
						
						
						
						Fix arguments parsing for "0" string 
						
					 
					
						2014-09-08 22:52:33 +04:30  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Dmitriy Simushev 
							
						 
					 
					
						
						
						
						
							
						
						
							618ec54490 
							
						 
					 
					
						
						
							
							Fix arguments parsing for "0" string  
						
						 
						
						
						
					 
					
						2014-09-08 13:23:19 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								fzerorubigd 
							
						 
					 
					
						
						
						
						
							
						
						
							ec108c0bac 
							
						 
					 
					
						
						
							
							Merge branch 'Mibew-improved_arguments_parsing'  
						
						 
						
						
						
					 
					
						2014-09-07 22:01:51 +04:30  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Dmitriy Simushev 
							
						 
					 
					
						
						
						
						
							
						
						
							614e8182f0 
							
						 
					 
					
						
						
							
							Add tests for combined arguments parsing  
						
						 
						
						
						
					 
					
						2014-09-02 13:48:09 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Dmitriy Simushev 
							
						 
					 
					
						
						
						
						
							
						
						
							2ebc5bfda2 
							
						 
					 
					
						
						
							
							Add special variables detection  
						
						 
						
						
						
					 
					
						2014-09-02 13:08:20 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Dmitriy Simushev 
							
						 
					 
					
						
						
						
						
							
						
						
							17dc20203b 
							
						 
					 
					
						
						
							
							Improve arguments parsing  
						
						 
						
						
						
					 
					
						2014-09-02 09:34:38 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								fzerorubigd 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							bacde14221 
							
						 
					 
					
						
						
							
							Some changes in tests provided in  #80  
						
						 
						
						
						
					 
					
						2014-08-29 11:46:42 +04:30  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								fzerorubigd 
							
						 
					 
					
						
						
						
						
							
						
						
							1b491bf602 
							
						 
					 
					
						
						
							
							Merge branch 'subexpr_context_test' of github.com:Mibew/handlebars.php  
						
						 
						
						
						
					 
					
						2014-08-29 11:21:17 +04:30  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								fzerorubigd 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							de08528c2c 
							
						 
					 
					
						
						
							
							add extra context layer for if and unless. (Toi match with handlebars.js)  
						
						 
						
						
						
					 
					
						2014-08-29 11:17:31 +04:30  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								fzerorubigd 
							
						 
					 
					
						
						
						
						
							
						
						
							cc5bb9bf87 
							
						 
					 
					
						
						
							
							Merge branch 'patch-4' of github.com:ulriklystbaek/handlebars.php  
						
						 
						
						
						
					 
					
						2014-08-29 11:09:59 +04:30  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								fzerorubigd 
							
						 
					 
					
						
						
						
						
							
						
						
							77e71e6543 
							
						 
					 
					
						
						
							
							Merge branch 'patch-3' of github.com:ulriklystbaek/handlebars.php  
						
						 
						
						
						
					 
					
						2014-08-29 11:08:49 +04:30  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								fzerorubigd 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							d731f8d438 
							
						 
					 
					
						
						
							
							Merge branch 'patch-6' of github.com:ulriklystbaek/handlebars.php  
						
						 
						
						... 
						
						
						
						Conflicts:
	tests/Xamin/HandlebarsTest.php 
						
					 
					
						2014-08-29 11:08:36 +04:30  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								fzerorubigd 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							9bebfa9a61 
							
						 
					 
					
						
						
							
							remove an un-finished test  
						
						 
						
						
						
					 
					
						2014-08-29 11:05:06 +04:30  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								ulriklystbaek 
							
						 
					 
					
						
						
						
						
							
						
						
							4e81464c30 
							
						 
					 
					
						
						
							
							Update HandlebarsTest.php  
						
						 
						
						... 
						
						
						
						Test that check if the if and unless helpers comply with handlebars.js 
						
					 
					
						2014-08-28 18:47:51 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Dmitriy Simushev 
							
						 
					 
					
						
						
						
						
							
						
						
							0432d99d8a 
							
						 
					 
					
						
						
							
							Add subexpressions with context tests  
						
						 
						
						
						
					 
					
						2014-08-28 13:10:45 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								fzerorubigd 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							3710a50e41 
							
						 
					 
					
						
						
							
							Use stable branch of phpunit and code sniffer  
						
						 
						
						
						
					 
					
						2014-08-28 14:32:39 +04:30  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Fzerorubigd 
							
						 
					 
					
						
						
						
						
							
						
						
							8a669f3176 
							
						 
					 
					
						
						
							
							Merge pull request  #79  from ulriklystbaek/patch-5  
						
						 
						
						... 
						
						
						
						Update Context.php, Return null instead of empty string when the variable is not available in context 
						
					 
					
						2014-08-28 14:26:04 +04:30  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								ulriklystbaek 
							
						 
					 
					
						
						
						
						
							
						
						
							122a8a9d7b 
							
						 
					 
					
						
						
							
							Update Context.php  
						
						 
						
						... 
						
						
						
						Should return null instead of an empty string when context is not found. Handlebars.js returns undefined, which makes it possible to distict an empty string and not existing. (should not affect existing use, because null is handeled the same way as empty string) 
						
					 
					
						2014-08-28 10:10:05 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								ulriklystbaek 
							
						 
					 
					
						
						
						
						
							
						
						
							abb88322e0 
							
						 
					 
					
						
						
							
							Update UnlessHelper.php  
						
						 
						
						... 
						
						
						
						To comply with handlebars.js, If adds an extra layer when need to access parents (https://github.com/wycats/handlebars.js/issues/196 ) 
						
					 
					
						2014-08-28 09:50:53 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								ulriklystbaek 
							
						 
					 
					
						
						
						
						
							
						
						
							415a3b00b8 
							
						 
					 
					
						
						
							
							Update IfHelper.php  
						
						 
						
						... 
						
						
						
						To comply with handlebars.js, If adds an extra layer when need to access parents (https://github.com/wycats/handlebars.js/issues/196 ) 
						
					 
					
						2014-08-28 09:49:32 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Behrooz Shabani 
							
						 
					 
					
						
						
						
						
							
						
						
							c6f3e0fd5e 
							
						 
					 
					
						
						
							
							Merge pull request  #75  from Mibew/named_arguments  
						
						 
						
						... 
						
						
						
						Add named arguments parser 
						
					 
					
						2014-08-20 23:15:37 +04:30  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								behrooz shabani (everplays) 
							
						 
					 
					
						
						
						
						
							
						
						
							07c49bbb3f 
							
						 
					 
					
						
						
							
							make sure that buffer is always a string  
						
						 
						
						
						
					 
					
						2014-08-20 13:08:33 +04:30  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								behrooz shabani (everplays) 
							
						 
					 
					
						
						
						
						
							
						
						
							35ea671fd7 
							
						 
					 
					
						
						
							
							fix 0 being treated as empty string,  fixes   #76  
						
						 
						
						
						
					 
					
						2014-08-20 10:14:02 +04:30  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Dmitriy Simushev 
							
						 
					 
					
						
						
						
						
							
						
						
							92a3815d85 
							
						 
					 
					
						
						
							
							Add named arguments parser  
						
						 
						
						
						
					 
					
						2014-08-19 11:21:20 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								fzerorubigd 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							84c6e3006c 
							
						 
					 
					
						
						
							
							fix   #71  
						
						 
						
						
						
					 
					
						2014-07-11 21:05:26 +04:30  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								fzerorubigd 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							a9178d5f01 
							
						 
					 
					
						
						
							
							fix phpcs  
						
						 
						
						
						
					 
					
						2014-07-04 22:30:41 +04:30  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								fzerorubigd 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							0a35a913c2 
							
						 
					 
					
						
						
							
							add more test and fix a wrong test, also comment some not-used-at-all codes.  
						
						 
						
						... 
						
						
						
						If need some of thease code back, create a test case for them. 
						
					 
					
						2014-07-04 22:22:18 +04:30  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								fzerorubigd 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							a68318f4c5 
							
						 
					 
					
						
						
							
							Support whitespace deletion  
						
						 
						
						... 
						
						
						
						Need more test :)
fixes  #61  
						
					 
					
						2014-07-04 03:36:14 +04:30  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Fzerorubigd 
							
						 
					 
					
						
						
						
						
							
						
						
							cd8cec42a0 
							
						 
					 
					
						
						
							
							Merge pull request  #70  from Mibew/tests_for_issue_69  
						
						 
						
						... 
						
						
						
						Add a test case for issue #69  
						
					 
					
						2014-07-03 21:36:13 +04:30  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Dmitriy Simushev 
							
						 
					 
					
						
						
						
						
							
						
						
							ff6e3dfe14 
							
						 
					 
					
						
						
							
							Add a test case for issue  #69  
						
						 
						
						
						
					 
					
						2014-07-03 16:53:49 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Fzerorubigd 
							
						 
					 
					
						
						
						
						
							
						
						
							813143cf1d 
							
						 
					 
					
						
						
							
							Merge pull request  #69  from jslegers/master  
						
						 
						
						... 
						
						
						
						Patch 2 for arrays that contain only one elements 
						
					 
					
						2014-07-03 19:36:04 +04:30  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								John Slegers 
							
						 
					 
					
						
						
						
						
							
						
						
							182bfc9aea 
							
						 
					 
					
						
						
							
							Patch 2 for arrays that contain only one elements  
						
						 
						
						... 
						
						
						
						For arrays that contain only one element, `(array_keys($tmp) == range(0, count($tmp) - 1)` always returns true.
`(array_keys($tmp) === range(0, count($tmp) - 1)` works as expected.
My local test environment = Linux Mint + PHP 5.4.
This patch is identical to https://github.com/XaminProject/handlebars.php/pull/66 , but applies to a different part of the code. 
						
					 
					
						2014-07-03 16:53:22 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Behrooz Shabani 
							
						 
					 
					
						
						
						
						
							
						
						
							021ca5f018 
							
						 
					 
					
						
						
							
							Merge pull request  #67  from Mibew/each_helper_single_key_test  
						
						 
						
						... 
						
						
						
						Add a test case for #66  
						
					 
					
						2014-07-02 23:10:47 +04:30  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Dmitriy Simushev 
							
						 
					 
					
						
						
						
						
							
						
						
							c5d09bd13a 
							
						 
					 
					
						
						
							
							Add a test case for  #66  
						
						 
						
						
						
					 
					
						2014-07-02 18:35:00 +00:00