Sha256: 80da04c2b740738cadcbdc8c43039de7192374fb7cc2b324622be77e85f0806f

Contents?: true

Size: 696 Bytes

Versions: 11

Compression:

Stored size: 696 Bytes

Contents

# [javascript\_spec.rb:3](/spec/hamlit/filters/javascript_spec.rb#L3)
## Input
```haml
before
:javascript
after

```

## Output
### Haml
```html
before
<script>
  
</script>
after

```

### Hamlit
```html
before
<script>

</script>
after

```


# [javascript\_spec.rb:32](/spec/hamlit/filters/javascript_spec.rb#L32)
## Input
```haml
:javascript
 if {
  alert('hello');
   }
:javascript
   if {
    alert('hello');
     }

```

## Output
### Haml
```html
<script>
  if {
   alert('hello');
    }
</script>
<script>
    if {
     alert('hello');
      }
</script>

```

### Hamlit
```html
<script>
  if {
   alert('hello');
    }
</script>
<script>
  if {
   alert('hello');
    }
</script>

```

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
hamlit-1.7.2 doc/haml/filters/javascript.md
hamlit-1.7.1 doc/haml/filters/javascript.md
hamlit-1.7.0 doc/haml/filters/javascript.md
hamlit-1.6.7 doc/haml/filters/javascript.md
hamlit-1.6.6 doc/haml/filters/javascript.md
hamlit-1.6.5 doc/haml/filters/javascript.md
hamlit-1.6.4 doc/haml/filters/javascript.md
hamlit-1.6.3 doc/haml/filters/javascript.md
hamlit-1.6.2 doc/haml/filters/javascript.md
hamlit-1.6.1 doc/haml/filters/javascript.md
hamlit-1.6.0 doc/haml/filters/javascript.md