Sha256: 591b08c8f717bd9212789a60c3a174cb476f1af0c15c3af1a6f0bed925042177

Contents?: true

Size: 1.25 KB

Versions: 6

Compression:

Stored size: 1.25 KB

Contents

# [coffee\_spec.rb:3](/spec/hamlit/filters/coffee_spec.rb#L3)
## Input
```haml
:coffee
  foo = ->
    alert('hello')

```

## Output
### Faml
```html
<script>
(function() {
  var foo;

  foo = function() {
    return alert('hello');
  };

}).call(this);

</script>

```

### Hamlit
```html
<script>
  (function() {
    var foo;
  
    foo = function() {
      return alert('hello');
    };
  
  }).call(this);
</script>

```


# [coffee\_spec.rb:22](/spec/hamlit/filters/coffee_spec.rb#L22)
## Input
```haml
:coffee
  foo = ->
    alert('hello')

```

## Output
### Faml
```html
<script>
(function() {
  var foo;

  foo = function() {
    return alert('hello');
  };

}).call(this);

</script>

```

### Hamlit
```html
<script>
  (function() {
    var foo;
  
    foo = function() {
      return alert('hello');
    };
  
  }).call(this);
</script>

```


# [coffee\_spec.rb:41](/spec/hamlit/filters/coffee_spec.rb#L41)
## Input
```haml
:coffee
  foo = ->
    alert("#{'<&>'}")

```

## Output
### Faml
```html
<script>
(function() {
  var foo;

  foo = function() {
    return alert("<&>");
  };

}).call(this);

</script>

```

### Hamlit
```html
<script>
  (function() {
    var foo;
  
    foo = function() {
      return alert("<&>");
    };
  
  }).call(this);
</script>

```

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hamlit-1.6.5 doc/faml/filters/coffee.md
hamlit-1.6.4 doc/faml/filters/coffee.md
hamlit-1.6.3 doc/faml/filters/coffee.md
hamlit-1.6.2 doc/faml/filters/coffee.md
hamlit-1.6.1 doc/faml/filters/coffee.md
hamlit-1.6.0 doc/faml/filters/coffee.md