leonidas/transparency — Issue #21: Change attribute assignment syntaxt from foo@href to foo.href
Author: pyykkis
Created: 2012-02-27 18:07:12+00:00
State: open

`foo@href` syntax for attribute assignment was originally adopted from PURE. It seemed a bit awkward from the beginning, and indeed, it still does. @ sign is usually in reverse order, as in email addresses like `me@my.domain.com`, which is not the case with Transparency.

I propose we change the syntax closer to DOM API / jQuery and separate keyword and attribute by dot, e.g.,

```coffeescript
data =
name: "Matt Hughes"

directives
name.href: "mailto:matt.hughes@example.com"
```

To maintain backward compatibility, `@` syntax should be supported for some time, though.

Waiting for comments before implementation.