Jade-6to5
This is a simple module which adds a 6to5 (ES6 to ES5) filter to jade.
Installation
$ npm install jade-6to5
Usage
var jade = ;var to5 = ; jadefiltersto5 = ;
OR
var jade = ;var to5 = ; jade = ;
Now you can use ES6 in your jade templates as following.
script :to5 console.log('Hello World !!!'); class Person{ constructor(name){ this.name = name; } sayName(){ console.log(`Hello, my name is ${this.name}`); } } var pers = new Person('Apoxx'); pers.sayName();