leonidas/transparency — Issue #22: Syntax for appending content
Author: pyykkis
Created: 2012-02-27 18:37:21+00:00
State: open
Labels: Feature

Currently, Transparency replaces existing content. Sometimes, e.g., when adding a new class for an element, appending would be handy.

Current functionality

```coffeescript
directive =
'foo@class': (e) -> $(e).attr('class') + " " + "newclass"
```

Proposed functionality

```coffeescript
directive =
'foo@class+': " newclass"
```

I'm not sure if this is common enough scenario justifying the implementation, so let's have discussion first.

If the feature is worth implementing, in what extent we should support it? Only for attributes, or directives in general, or for both data and directives?