Class: Noumenon::Theme::AssetsMiddleware

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/noumenon/theme/assets_middleware.rb

Overview

Handles requests for assets within loaded themes.

Any request to /themes/Theme Name/* will be served from the theme’s assets directory, with existing files being served, and non-existant files generating a 404.

The middleware is automatically added to the stack if you’re running using Noumenon.server