jade-traceur

0.0.3 • Public • Published

JADE-TRACEUR

This is a simple module which adds a traceur filter to jade.

Usage example:

var jade = require('jade');
var jadeTraceur = require('jade-traceur');
 
jade.filters.traceur = jadeTraceur({experimental: true});

OR

var jade = require('jade');
var jadeTraceur = require('jade-traceur');
 
jade = jadeTraceur({experimental: true}, jade);

and then

script(src="traceur-runtime.js")
script
    :traceur
        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();

Readme

Keywords

none

Package Sidebar

Install

npm i jade-traceur

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • apox