emweb-wt is a module for emweb which adds support for Web Templates.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
LICENSE
README.md
index.js
package.json

README.md

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