XaminProject / handlebars.php

Handlebars processor for php
331 stars 134 forks source link

Return 'Array' when referencing an array as a string #95

Closed DavidCramer closed 9 years ago

DavidCramer commented 9 years ago

When using {{value}} on an array, It bombs out with an error. This is to simply return the string 'Array' similar to how PHP does it (without the error) or how javascript does [Object object]

fzerorubigd commented 9 years ago

Could you please add a test for this?

Thank you!

fzerorubigd commented 9 years ago

And also, please squash all commit into one, after adding a test.