Sha256: 8ce4401f6dc60c61e63c0678609c1d4b1855e660ac858306ff8128f9ad7c6c0c

Contents?: true

Size: 1.27 KB

Versions: 10

Compression:

Stored size: 1.27 KB

Contents

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

```

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

```

### Faml
```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
### Haml, Hamlit
```html
<script>
  (function() {
    var foo;
  
    foo = function() {
      return alert('hello');
    };
  
  }).call(this);
</script>

```

### Faml
```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
### Haml, Hamlit
```html
<script>
  (function() {
    var foo;
  
    foo = function() {
      return alert("<&>");
    };
  
  }).call(this);
</script>

```

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

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

}).call(this);

</script>

```

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
hamlit-1.6.5 doc/filters/coffee.md
hamlit-1.6.4 doc/filters/coffee.md
hamlit-1.6.3 doc/filters/coffee.md
hamlit-1.6.2 doc/filters/coffee.md
hamlit-1.6.1 doc/filters/coffee.md
hamlit-1.6.0 doc/filters/coffee.md
hamlit-1.5.9 doc/filters/coffee.md
hamlit-1.5.8 doc/filters/coffee.md
hamlit-1.5.7 doc/filters/coffee.md
hamlit-1.5.6 doc/filters/coffee.md