eyeglass-listfiles

0.0.1 • Public • Published

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.

Dependents (0)

Package Sidebar

Install

npm i eyeglass-listfiles

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • thomasmattheussen