1.4.1 • Published 9 years ago

homeless v1.4.1

Weekly downloads
5
License
MIT
Repository
github
Last release
9 years ago

homeless

Let' s help the "less" (fortunate) developers

homeless is a library that provides helpful functions for "Less" (Less.js)

deeply inspired by more-or-less

Examples

each

@list: 'a', 'b', 'c';

.each(@list, {.callback(@item, @index) {
  .@{item} {
    item: @item;
    index: @index;
  }
}});

for

.for(3, {.callback(@i) {
  .for(3, {.callback(@j) {
    .item-@{i}-@{j} {
      i: @i;
      j: @j;
    }
  }});
}});

if

.if(isnumber(2), {
    .then(){
        test {
            bool: "pass";
        }
    }
    .else(){
        test {
            bool: "fail";
        }
    }
});

index

@fruits: apple, banana, orange;

.test {
  .index(@fruits, apple);
  apple: @return;
}

join

@letters: a, b, c, d, e, f, g;
.join(@letters, {
  .test {
    test: @return;
  }
});

repeat

.repeat('div', ' > ', 3, {
  @{return} {
    /**/
  }
});
1.4.1

9 years ago

1.4.0

9 years ago

1.3.2

9 years ago

1.3.1

9 years ago

1.3.0

9 years ago

1.2.0

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.0.1

9 years ago