XaminProject / handlebars.php

Handlebars processor for php
331 stars 134 forks source link

Escaping curly brackets #53

Closed cjloong closed 10 years ago

cjloong commented 10 years ago

Does handlebar provide a way for escaping curly brackets. I've tried the js version /{{test}} gives {{test}}

However, php version does not and render an empty string (because data is empty)

everplays commented 10 years ago

Unfortunately no, currently there's no support for escaping curly brackets in handlebars.php. If you're interested to implement it yourself, please have a look at src/Handlebars/Tokenizer.php.

On Tue, Mar 4, 2014 at 3:23 PM, cjloong notifications@github.com wrote:

Does handlebar provide a way for escaping curly brackets. I've tried the js version /{{test}} gives {{test}}

However, php version does not and render an empty string (because data is empty)

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

regards, behrooz