I am currently building a website that uses NodeJS
for the server, Express Handlebars
but server side) , and hopefully AngularJS
for some client side stuff.
AngularJS and Handlebars use the same syntax for templating
This causes a problem where AngularJS code will be interpreted by Express Handlebars first, which will then throw an error because the data it is trying to pull only exists in Angular not Node.
Is there a way to get AngularJS and Express Handlebars to work together?
- Change the syntax of AngularJS
- I was looking at BackboneJS and it looks like it is possible to change the syntax. There could possibly be something similar is AngularJS.
- Create a
helper in Express Handlebars.
- It would just return its un-parsed content. However I couldn't figure out how to do this.