0.0.1 • Published 9 years ago

eyeglass-listfiles v0.0.1

Weekly downloads
6
License
MIT
Repository
github
Last release
9 years ago

Eyeglass-listfiles

Eyeglass-listfiles is an eyeglass module to list files in a directory. It exposes a function in sass that returns a sass map of the filenames. (keys are filenames without extension, values are filenames with extension)

Install

npm install eyeglass-listfiles --save

Usage

$files: listFiles('public/media/images');

@each $filename, $file in $files {
    .image-#{$filename} {
        background-image: url('#{$file}');
    }
}

Copyright

Copyright (c) 2015 Thomas Mattheussen. See LICENSE for details.