Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jammit-sinatra

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jammit-sinatra

  • 0.6.0.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Jammit Sinatra

Introduction

Jammit-Sinatra is a jammit wrapper that allows Jammit to work properly in Sinatra/Padrino web apps.

It includes middleware and fixed up view helpers (include_javascripts and include_stylesheets).

Installation

To install jammit-sinatra, just use:

gem install jammit-sinatra

If you are using bundler, add it to your project's Gemfile:

gem 'jammit-sinatra'

With Sinatra

In your app code, you'll need to register Jammit:

  register Jammit

You'll also need to load the jammit configuration file. So in your configure block, run:

::RAILS_ENV = "development" # this is needed to work around a Jammit limitation
Jammit.load_configuration("/path/to/config/assets.yml")

In order to use the include_javascripts and include_stylesheets you'll need to have working implemetnations of javascript_include_tag and stylesheets_include_tag. You can easily pull these helpers into your existing Sinatra app from Padrino. See instructions here.

With Padrino

padrino-gen plugin jammit

FAQs

Package last updated on 22 Mar 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc