cloudhead/less.js — Issue #520: Custom functions
Author: VictorGama
Created: 2011-12-13 16:19:10+00:00
State: open

Would be nice to have some way to implement custom functions, like:

```javascript
@function bgIcon(name) {
return background-image: url("/images/icons/@{name}");
}
```

Implementing the function...

```css
a.remove {
bgIcon(delete.png);
}
```

Result:

```css
a.remove {
background-image: url("/images/icons/delete.png");
}
```