sinatra/sinatra-contrib — pull request #99 by patriciomacadden (2013-04-05 21:15:25+00:00)
Title: JavascriptHeader module

I've created a helper module named `JavascriptHeader`, which behaves like `LinkModule`, adding the `javascript` method, which returns script tags for linking javascript files.

Usage (ie in a slim template):

```ruby
doctype html
head
== javascript '/path/to/file.js'
body
h1 Hello World
```

The result will be something like:

```html

Hello World

```