Sha256: 58a6d5afc2d54696dd1fb7a06814603a30842e437714fdd1079f33f1fedf6e1f
Contents?: true
Size: 338 Bytes
Versions: 14
Compression:
Stored size: 338 Bytes
Contents
module Sinatra::AssetPack class SimpleEngine < Engine def css(str, options={}) str.gsub! /[ \r\n\t]+/m, ' ' str.gsub! %r{ *([;\{\},:]) *}, '\1' str end def js(str, options={}) str end end Compressor.register :css, :simple, SimpleEngine Compressor.register :js, :simple, SimpleEngine end
Version data entries
14 entries across 14 versions & 1 rubygems