ember-cli-cloudinary-light
Ember addon for Cloudinary without jquery. Works good for fastboot.
Compatibility
- Ember.js v3.28 or above
- Ember CLI v3.28 or above
- Node.js v14 or above
From version 0.6.0 there is no positional parameters, publicId and options are arguments!
Installation
ember install ember-cli-cloudinary-light
Add your cloud name to config/environment.js ENV:
cloudinary: {
cloudName: 'some_cloud_name',
},
Components
cloudinary-image
This component will render an <img>
built from a cloudinary url and options.
Width and height attributes are set on the img tag as well as passed to cloudinary, allowing you to specify the resolution via the "dpr" attribute.
cloudinary-video
This will render a <source>
for use in a <video>
cloudinary-resource-list
Cloudinary's Client Side Resource Lists allow you to list cloudinary resources for a given tag.
safe-cloudinary-url helper
This helper can be used in styles when you want to have dynamic url:s to cloudinary. It will return "background-image: url(..)" ready to use in a style element.
Contributing
See the Contributing guide for details.
License
This project is licensed under the MIT License.