Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    emweb-wtpublic

    emweb-wt

    emweb-wt is a module for emweb which adds support for Web Templates.

    Dependencies

    • lexxy

    Usage

    Installation

    $ npm install emweb-wt
    

    Quick Start

    To use emweb-wt in your project:

    index.js
    var emweb = require('emweb');
    var emweb_wt = require('emweb-wt');
    var server = new emweb.Server();
     
    // set handler for .w files to emweb-wt's handler
    server.handlers.w = emweb_wt.handlers.w;
     
    // ignore requests for .wt files - they should only be accessed through a .w file
    server.handlers.wt = false;
     
    server.start();

    Keywords

    none

    install

    npm i emweb-wt

    Downloadsweekly downloads

    12

    version

    0.2.2

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar