/middleman-inline

Middleman extension to inline your JS and css

Primary LanguageRubyGNU General Public License v3.0GPL-3.0

middleman-inline

Build Status Code Climate

This gem adds helpers for middleman that inline your stylesheets and JavaScript. To use, add activate :inline to your config.rb, and, helpers will be available in any template. Here shown in an example ERB layout:

<html>
  <head>
    <%= inline_js 'jquery' %>
    <%= inline_css 'style', 'normalize.css' %>
    ...