pugjs / pug

Pug – robust, elegant, feature rich template engine for Node.js
https://pugjs.org
21.58k stars 1.96k forks source link

Aurelia: ES6 style variables conflict with aurelia's templating syntax #2597

Open ap91484 opened 7 years ago

ap91484 commented 7 years ago

I am trying to switch, as recommended, from jade to pug. All my Aurelia templates are written in jade. Compiling them with pug, i get an unexpected text-error, when pug comes across an aurelia variable (like: ${view_variable} ) in the template. Aurelia and pug use the same ES6-style ${} variable syntax. This was no problem in jade.

Is there a way to prevent pug from using variables or change the syntax?

TimothyGu commented 7 years ago

Can you give a small code sample?