generator css and scss templates for images
Examples
var imagecss = ;var files = width: 400 height: 300 file: "t.png";var result =
result is
.img_t .img_t-s2 ; ; ; ;
Options
- root: path to folder where images locate
type: String
default: ""
example:
file: `test/image.png`
root: `images`
result: `images/test/image.png`
- css: generate css
type: Boolean default: false
example:
- scss: generate scss
type: Boolean
default: false
example:
- retina: generate media-query for retina images, file must locates in the same folder with the same name with retina postfix
type: Boolean|String
default: false
example:
for css
{ }
for scss
; ;
- squeeze: squeeze image in
squeeze
times
type: Int
default: 1
example: squeeze=2
for css
for scss
; ; ; ;
ChangeLog
- 0.0.2 add separator option
- 0.0.1 Basic functionality