XaminProject / handlebars.php

Handlebars processor for php
331 stars 134 forks source link

Is whitespace deletion supported #61

Closed cjloong closed 10 years ago

cjloong commented 10 years ago

The handlebar has {{~prop}} or {{prop~}} that eats up all whitespace on the left or right of the generated string. Is this supported?

everplays commented 10 years ago

No, unfortunately handlebars.php doesn't support it.

On Wed, Apr 30, 2014 at 6:55 AM, cjloong notifications@github.com wrote:

The handlebar has {{~prop}} or {{prop~}} that eats up all whitespace on the left or right of the generated string. Is this supported?

— Reply to this email directly or view it on GitHubhttps://github.com/XaminProject/handlebars.php/issues/61 .

regards, behrooz

jonas-db commented 10 years ago

Coincidence or not, i was about to ask the same question, because i got an error when using the ~ . Any plans on supporting this?

everplays commented 10 years ago

No, we don't have any plans on supporting this right now. However, if you're planning to implement it yourself, start with Tokenizer class and please don't hestitate to ask questions.

On Wed, Apr 30, 2014 at 11:41 PM, jonas-db notifications@github.com wrote:

Coincidence or not, i was about to ask the same question, because i got an error when using the ~ . Any plans on supporting this?

— Reply to this email directly or view it on GitHubhttps://github.com/XaminProject/handlebars.php/issues/61#issuecomment-41837155 .

regards, behrooz

jonas-db commented 10 years ago

Ok, no problem :) If i have some spare time i'll maybe give it a try.

rewmike commented 10 years ago

Any luck on this? I am interested in this feature and was hoping not to reinvent the wheel.