Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (14 sloc) 540 Bytes

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.