we-class-theme
We.js class theme used to load one we.js theme from npm module
API
After all ... load the class
var Theme = require('we-class-theme');
Load one theme
var projectFolder = process.cwd();
var myTheme = new Theme(
'wejs-theme-default',
projectFolder
);
For more infos check we.js theme engine for one example or how to use this class with sails.js, link:
https://github.com/wejs/we-theme-engine/blob/master/lib/themeHook.js
Helpers
Sails Helpers avaible in theme class
render
theme.render(req, res, 'home/index');
Grunt helpers and all other helpers see
Check: https://github.com/wejs/we-class-theme/blob/master/lib/index.js
Links
Credits
Alberto Souza and contributors
License
MIT