Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 rack-typekit.gemspec
README.md

rack-typekit

Rack middleware to automatically include your Typekit JavaScript files

Example

require "rack/typekit"

use Rack::Typekit, :kit => "lng5bpe"

Including this in the config.ru file of your Rack application will automatically inject the corresponding JavaScript into the <head> of your HTML:

<script src="//use.typekit.com/lng5bpe.js"></script>
<script>try{Typekit.load();}catch(e){}</script>

License

rack-typekit is available under the MIT license. See the LICENSE file for more info.

Something went wrong with that request. Please try again.