Module: LeanWeb

Defined in:
lib/leanweb.rb,
lib/leanweb/app.rb,
lib/leanweb/route.rb,
lib/leanweb/helpers.rb,
lib/leanweb/version.rb,
lib/leanweb/controller.rb,
contrib/lib/leanweb/controller_mixins/render_with_layout.rb

Overview

LeanWeb is a minimal hybrid static / dynamic web framework.

Defined Under Namespace

Modules: ControllerMixins, StringRefinements Classes: Action, App, Controller, Route

Constant Summary collapse

ROOT_PATH =
ENV.fetch('LEANWEB_ROOT_PATH', Dir.pwd)
CONTROLLER_PATH =
"#{ROOT_PATH}/src/controllers"
VIEW_PATH =
"#{ROOT_PATH}/src/views"
PUBLIC_PATH =
"#{ROOT_PATH}/public"
MEDIA_EXTENSIONS =
{
  nil => '.html',
  'application/javascript' => '.js',
  'application/json' => '.json',
  'text/html' => '.html',
  'text/plain' => '.txt',
  'text/css' => '.css',
  'text/csv' => '.csv'
}.freeze
DEFAULT_CONTROLLER =
:MainController
VERSION =
'0.5.0'