0.0
No commit activity in last 3 years
No release in over 3 years
Rack middleware for managing HTML5 manifest file by yaml and make it easy to implement in Rails.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.12.5
~> 10.0
~> 3.0

Runtime

>= 0
 Project Readme

Rack::Manifest

This is a Rack middleware for managing your HTML5 manifest file (used for Service Worker, WebApp Icon, etc.) by yaml. It can be easily implemented into your Rails application.

Installation

Add this line to your application's Gemfile:

gem 'rack-manifest'

Usage

Rails

  • Set manifest.yml file like this one into your config directory.
  • After restarting server, you can see the converted manifest file on /manifest.json path.
  • ERB format and asset path helpers are available.
name: Rack Manifest
short_name: Manifest
icons: 
  - src: <%= image_path('icon.png') %>
    sizes: 512x512
    type: image/png
start_url: /
display: standalone

License

The gem is available as open source under the terms of the MIT License.