0.0
No commit activity in last 3 years
No release in over 3 years
Add metadata tags to the header
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

Runtime

>= 0
 Project Readme

rack-metadata Build Status

Inject meta tags into your head. This rack middleware collects meta data about a page and will inject meta tags into the head of your html content.

Usage

# in your rack up/config file
use Rack::Metadata

# in your application
env['rack.metadata'] = {
  description: "My page's meta description",
  keywords: "Foo, bar"
}

It the request is text/html, the middleware will add meta tags for description and keywords:

<head>
  …
  <meta name="description" content="My page's meta description" />
  <meta name="keywords" content="Foo, bar" />
  …
</head>

All other content types are currently ignored.