Skip to content

Support json (to pass in arrays) #2601

Closed
@thecotne

Description

@thecotne

so i have project https://github.com/thecotne/square-file-icons
i want change from lodash template to less
since it makes more sens for me to generate css with less

but i can't pass json to less.js
i can pass strings
but not objects and arrays of objects

i will be nice to support something like this

@foreach(@glyphs as @glyph) {
    .@{glyph.name} {
        content: "\\@{glyph.char}";
    }
}

glyphs is array of objects passed from modifyVars

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions