0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Rack middleware to automatically include your Typekit JavaScript files
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.11, >= 2.11.4
~> 0

Runtime

~> 1.2, < 2.0.0
 Project Readme

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>

Contact

Mattt

License

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