Nostradamus Prophecy Machine

    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();

    Keywords

    none

    Install

    npm i jade-traceur

    DownloadsWeekly Downloads

    7

    Version

    0.0.3

    License

    MIT

    Last publish

    Collaborators

    • apox