Adding basic ejs-locals support

This commit is contained in:
Jason Tremper
2014-12-23 15:30:03 -05:00
parent e64c099532
commit a1777be912
2 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
/// <reference path="../express/express.d.ts" />
/// <reference path="ejs-locals.d.ts" />
import express = require('express');
import ejsLocals = require('ejs-locals');
var app: express.Express = express();
app.engine('ejs', ejsLocals);

11
ejs-locals/ejs-locals.d.ts vendored Normal file
View File

@@ -0,0 +1,11 @@
// Type definitions for ejs-locals
// Project: https://github.com/randometc/ejs-locals
// Definitions by: jt000 <https://github.com/jt000>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module "ejs-locals" {
function ejsLocals(): Function;
export = ejsLocals;
}