Socket
Socket
Sign inDemoInstall

handlebars-cloudinary

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

handlebars-cloudinary

handlebars helper to generate cloudinary urls


Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

handlebars-cloudinary

nodei.co

npm

github-issues

stars

forks

handlebars / cloudinary helper to generate cloudinary urls.

install

npm i --save handlebars-cloudinary

usage

import { handlebarsCloudinary } from 'handlebars-cloudinary'
import { handlebars } from 'handlebars'
Handlebars.registerHelper('cloudinary', handlebarsCloudinary('mycloud'))

handlebars.compile('<img src="{{cloudinary cloudinary_id "{ width:400, height:300, crop:\'fill\' }"}}" alt="image alt">').template({})
// <img src="http://res.cloudinary.com/mycloud/image/upload/c_fill,h_300,w_400/v1/cloudinary_id" alt="image alt">

quotes

The example above shows a problem you run into if trying to declare strings in js. The escaped quotes will work fine in this case.

In a handlebars template file, you can just use single quotes.

compatibility

dist/index.js should be fully compatible with node 6

Author

Levi Wheatcroft levi@wht.cr

Contributing

Contributions welcome; Please submit all pull requests against the master branch.

License

MIT

Keywords

FAQs

Package last updated on 29 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc