Skip to content

Non-string replacement value #308

@alexgagnon

Description

@alexgagnon

Hi, is there a technical reason why the replacement value must be a string? My use-case is that I load in an object and then use that to replace values in a CSS file, but some values should be numbers.

For example, this fails:

padding: {{ padding }};
data = {
  padding: 0, // this fails, but works as a string: "0"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions