Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change delimiter #50

Closed
mlconnor opened this issue Jun 18, 2013 · 1 comment
Closed

Change delimiter #50

mlconnor opened this issue Jun 18, 2013 · 1 comment

Comments

@mlconnor
Copy link

I'm seeing any way to change the handlebars delimiter. I mustache, the spec indicates that you can escape like this.

  • {{default_tags}}
    {{=<% %>=}}
  • <% erb_style_tags %>
    <%={{ }}=%>
  • {{ default_tags_again }}

But when I try to do this using hbs is fails after trying to evaluate the content of my AngularJS variables. Is changing the delimiter supported in hbs?

@mlconnor
Copy link
Author

It turns out that Handlebars itself does not support changing the delimiter. So it doesn't make sense for HBS to support that if Handlebars doesn't. On another note, you can change the Angular delimiter by...

 angular.module('myApp', ['ngResource'], function($interpolateProvider) {
     $interpolateProvider.startSymbol('<%');
     $interpolateProvider.endSymbol('%>');
   })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant