Adding basic ejs-locals support

This commit is contained in:
Jason Tremper committed 2014-12-23 15:30:03 -05:00
1 parent e64c099532
commit a1777be912
2 files changed
+19

No files matched your search

+8
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
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;
}