File: sprite.css.erb

package info (click to toggle)
ruby-sprockets 4.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,960 kB
  • sloc: ruby: 13,012; javascript: 157; makefile: 4
file content (11 lines) | stat: -rw-r--r-- 219 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
/*
 *= depend_on "POW.png"
 */

<%
  path = File.expand_path("../POW.png", __FILE__)
  data = [File.open(path, "rb") { |f| f.read }].pack('m')
%>
.pow {
  background: url(data:image/png;base64,<%= data %>) no-repeat;
}