Adds a Typekit helper to your Rails application and uses some best practices for the integration.
Installation
In your Gemfile
just add:
gem 'typekit-rails'
Use the Generator
Run the generator which will prompt you for your kit ID.
rails g typekit:install
Pro Usage
Add the JavaScript helper to application.js
or equivalent:
//= require typekit
Specify your kit ID as such right near the top of your <head>
element:
<%= typekit 'abc123def456' %>
License
Licensed under the MIT License.
Authors
- Chris Bielinski chris@shadowreactor.com