0.15.1 • Published 9 years ago

teal-express v0.15.1

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

Teal-based view engine for Express

Usage

var express = require('express');
var teal = require('teal-express');

var app = express();
var opts = {};
var tl = teal(app, opts);

app.get('/', function(req, res) {
  res.render('hello', { name: 'world' });
});

app.listen(3000);

Then create a simple view for example /views/hello.tl

html {
  head {
    teal/stylesheet {}
  }
  body {
    font-size: 42px;
    "Hello " $name
  }
}

Options

All options will be passed on teal. There is one additional option called dev which can be used to enable/disable the development mode.

During development teal will generate source-maps and watch the filesystem for modifications.

dev defaults to true unless $NODE_ENV is set to "production".

The MIT License (MIT)

Copyright (c) 2014 Felix Gnass

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0.15.1

9 years ago

0.15.0

9 years ago

0.14.0

10 years ago

0.13.1

10 years ago

0.13.0

10 years ago

0.12.0

10 years ago

0.11.0

10 years ago

0.10.0

10 years ago

0.7.0

10 years ago

0.6.0

10 years ago