helpers/helper-uigradient

Name: helper-uigradient

Owner: Helpers

Description: Template helper that generates the CSS for any of the gradients from Ghosh/uiGradients

Created: 2017-01-05 22:02:15.0

Updated: 2018-04-23 09:11:55.0

Pushed: 2017-06-10 22:56:36.0

Homepage: null

Size: 23

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

helper-uigradient NPM version NPM monthly downloads NPM total downloads Linux Build Status

Template helper that generates the CSS for any of the gradients from Ghosh/uiGradients

Install

Install with npm:

m install --save helper-uigradient
Usage

Example for handlebars, but this should work for any template engine that takes helpers or filters.

handlebars = require('handlebars');
lebars.registerHelper('gradient', require('helper-uigradient'));

Then use in your templates like this:

le>
age-header { 
{{gradient "Man of steel"}}

yle>
About
Related projects
Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Please read the contributing guide for advice on opening issues, pull requests, and coding standards.

Building docs

(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)

To generate the readme, run the following command:

m install -g verbose/verb#dev verb-generate-readme && verb
Running tests

Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:

m install && npm test
Author

Jon Schlinkert

License

Copyright © 2017, Jon Schlinkert. Released under the MIT License.


This file was generated by verb-generate-readme, v0.6.0, on June 10, 2017.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.