Skip to content

Iteration over a directory of images #209

Open
@xcephe

Description

@xcephe

We have a directory of images (icons) that we package as base64 using a few lines of Python. Since the rest of our CSS is moving into Compass/SASS, I looked for a way to iterate over a directory, but found none. Use case:

@for $img in directory("icons/16") {
    background-image: inline_image($img);
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions