module Roda::RodaPlugins::Assets::RequestClassMethods

Public Instance Methods

assets_opts() click to toggle source

Shortcut for roda class asset opts

# File lib/roda/plugins/assets.rb, line 247
def assets_opts
  roda_class.assets_opts
end
assets_route_regex() click to toggle source

The regex for the assets route

# File lib/roda/plugins/assets.rb, line 252
def assets_route_regex
  Regexp.new(
    assets_opts[:route] + '/' +
    "(#{assets_opts[:"css_folder"]}|#{assets_opts[:"js_folder"]})" +
    '/(.*)(?:\.(css|js)|http.*)$'
  )
end