passport-wsfed-saml2
Version:
SAML2 Protocol and WS-Fed library
11 lines (9 loc) • 363 B
JavaScript
var ejs = require('ejs');
var fs = require('fs');
var path = require('path');
var templates = fs.readdirSync(path.join(__dirname, 'templates'));
templates.forEach(function (tmplFile) {
var content = fs.readFileSync(path.join(__dirname, 'templates', tmplFile));
var template = ejs.compile(content.toString());
exports[tmplFile.slice(0, -4)] = template;
});