Skip to content
AnrDaemon edited this page Feb 22, 2015 · 2 revisions

LiteStep 0.25 have special syntax for grouping together attributes with the same prefix.

The Idea™ is very simple. Suppose you have a list of attributes that look like this:

ModuleStateAttribute1 ValueX
ModuleStateAttribute2 ValueY
ModuleStateAttribute3 ValueZ

In RC file, it can be expressed in several ways:

1.

Module
{
    StateAttribute1 ValueX
    StateAttribute2 ValueY
    StateAttribute3 ValueZ
}

2.

ModuleState
{
    Attribute1 ValueX
    Attribute2 ValueY
    Attribute3 ValueZ
}                

3.

Module
{
    State
    {
        Attribute1 ValueX
        Attribute2 ValueY
        Attribute3 ValueZ
    }
}

Of course, in the above example You may go as far as…

Module
{
    State
    {
        Attribute
        {
            1 ValueX
            2 ValueY
            3 ValueZ
        }
    }
}

…however, such creativity is not recommended. Please keep it sensible for the sake of those who might be reading your theme after your passing.

Clone this wiki locally