Sha256: 8e373be3720153ee274ca4d2d7adec3aaaf6ba818f0261d3939671b6ff081a12

Contents?: true

Size: 828 Bytes

Versions: 1

Compression:

Stored size: 828 Bytes

Contents

# [javascript\_spec.rb:3](https://github.com/k0kubun/hamlit/blob/master/spec/hamlit/filters/javascript_spec.rb#L3)
## Input
```haml
before
:javascript
after

```

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

```

### Faml
```html
before
after

```

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

</script>
after

```


# [javascript\_spec.rb:32](https://github.com/k0kubun/hamlit/blob/master/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>

```

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

```

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hamlit-1.5.5 doc/filters/javascript.md