Skip to content

Add something along the lines of #ifndef #2

Description

@foca

Something along the lines of

#ifndef something
#define something value
#endif

…but less verbose. Maybe #noredef (thinking of noremap in Vim.)

The idea being that plugins or modules can define variables with default values, and you could override them before including the file, so:

// In some_plugin.css
#noredef $some-plugin-color #ddd
strong { color: $some-plugin-color; }

// In main.css
#define $some-plugin-color #ccc
#include "some_plugin.css"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions