WEIV
WEIV is a function-ware designed to act as a function based middle-ware for view engines. The ideology behind it is based on the concept of a view backwards (IE: weiv).
INSTALLING
Git a copy from the repo and run npm install or use
npm install weiv --save
USING
Basic usage using express.js and vinegar.js:
Your main express.js script:
var weiv = ;var config_weiv = weiv_config = weiv; app; // now use vinegar.expressapp;
configs/weiv.js:
var Vinegar = ; moduleexports = engine: "Vinegar" script: "/path/to/assets/js/vinegar/Vinegar.js" init: loads_templates: true { return Vinegar } // Raw Method
See the examples folder for the completed example.
CONTRIBUTING
We encourage forking. Feel free to fork & pull your new additions, or bug fixes.
LICENSE
MIT