Sha256: ac6a7c19061eaf2e7f1f4672c2534dd6588b98c639bf34ffc6ea9058b6155eb5

Contents?: true

Size: 304 Bytes

Versions: 6

Compression:

Stored size: 304 Bytes

Contents

favicon = Lux.root.join('./public/favicon.png')

die './public/favicon.png not found' unless favicon.exist?

favicon = favicon.read

Lux.app.before do
  response.send_file('favicon.png', inline: true, content: favicon) if
    ['/favicon.ico', '/apple-touch-icon.png'].include?(request.path.downcase)
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lux-fw-0.5.37 ./plugins/favicon/favicon.rb
lux-fw-0.5.36 ./plugins/favicon/favicon.rb
lux-fw-0.5.35 ./plugins/favicon/favicon.rb
lux-fw-0.5.34 ./plugins/favicon/favicon.rb
lux-fw-0.5.33 ./plugins/favicon/favicon.rb
lux-fw-0.5.32 ./plugins/favicon/favicon.rb