arnaud-lb/MtHaml — pull request #30 by ronan-gloo (2013-03-28 17:28:42+00:00)
Title: Add scalar, object ref name override and auto id incrementation support

Some changes in Object Reference implementation:

1. Scalars are supported:
```
$str = 'hello';
$int = 12;
%div[$str] // generates

%div[$int] // generates

```

2. Object ids are auto-incremented if there is no id methods:
```
$std = new stdClass;
%div[$std] // generates

%div[$std] // generates

```

3. Object Reference id can be overwritten with hamlObjectRef() method (see #23):
```
class foo {
public function hamlObjectRef() {
return 'customId';
}
}
```