README
sample-eyeglass
Get your eyeglass on!
sample-eyeglass is an eyeglass (github) module that shows off the custom function and module import features in eyeglass. It's built on the greatness of node-sass (github).
Get This Module
npm install eyeglass --save-dev
install eyeglass (if you haven't already)npm install eyeglass-sample --save-dev
install this- wrap
sassOptions
withnew Eyeglass()
and off you go!
var Eyeglass = require("eyeglass");
var sass = require("node-sass")
var sassOptions = { /*...*/ } ; // options for node-sass
var eyeglass = new Eyeglass(sassOptions);
sass.render(eyeglass.sassOptions(), function(error, result) {
// ...
});
Using eyeglass-sample
Custom Functions
hello($name) <= returns String
Will return a string containing "Why hello, $name". Use this any time your content
needs to be friendly!
Sass
.sassy <= creates Sass pink as a color
Whenever you need that good Sass color, just call on the .sassy
class.
Make Your Own Eyeglass Module
Want to make your own module for Eyeglass? Check out the yeoman generator