0.2.2 • Published 9 years ago

wejsv2old-theme-engine v0.2.2

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

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