wejsv2old-theme-engine
v0.2.2
Published
We.js v2 theme engine
Downloads
7
Keywords
Readme
we-theme-engine
we-theme-engine is the we.js theme mecanism part of grunt and sails.js integration and we.js theme loader
App = user side app
Admin = administrator interface
How to install
npm install we-theme-engine --save
And add it in one sails.js hook:
file: api/hooks/we-theme-index.js
module.exports = require('we-theme-engine').hook;
Helpers:
For templates:
APP
Print App css link tags:
sails.services.theme.getlinkCssTags()
Print App javascript script tags:
sails.services.theme.getJsScriptTag()
Admin
Print Admin css link tags:
sails.services.theme.getAdminlinkCssTags()
Print Admin javascript script tags:
sails.services.theme.getAdminJsScriptTag()
Credits
Alberto Souza - License: MIT