Sha256: 9c1aa8bb61d48fed10b455a371ff0064834b89fa3052968378e05676827e1e29

Contents?: true

Size: 570 Bytes

Versions: 4

Compression:

Stored size: 570 Bytes

Contents

.eval {
    js: `42`;
    js: `1 + 1`;
    js: `"hello world"`;
    js: `[1, 2, 3]`;
    title: `typeof process.title`;
    ternary: `(1 + 1 == 2 ? true : false)`;
    multiline: `(function(){var x = 1 + 1;
           return x})()`;
}
.scope {
    @foo: 42;
    var: `parseInt(this.foo.toJS())`;
    escaped: ~`2 + 5 + 'px'`;
}
.vars {
    @var: `4 + 4`;
    width: @var;
}
.escape-interpol {
    @world: "world";
    width: ~`"hello" + " " + @{world}`;
}
.arrays {
    @ary:  1, 2, 3;
    @ary2: 1  2  3;
    ary: `@{ary}.join(', ')`;
    ary1: `@{ary2}.join(', ')`;
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
less-2.6.0 lib/less/js/test/less/javascript.less
less-2.5.1 lib/less/js/test/less/javascript.less
less-2.5.0 lib/less/js/test/less/javascript.less
less-2.4.0 lib/less/js/test/less/javascript.less