# frozen_string_literal: true
# Copyright 2022 Felix Freeman <libsys@hacktivista.org>
#
# This file is part of "LeanWeb" and licensed under the terms of the Hacktivista
# General Public License version 0.1 or (at your option) any later version. You
# should have received a copy of this license along with the software. If not,
# see <https://hacktivista.org/licenses/>.
# LeanWeb is a minimal hybrid static / dynamic web framework.
module LeanWeb
VERSION = '0.1.3'
ROOT_PATH = ENV['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'
}.freeze
autoload :Route, 'leanweb/route.rb'
autoload :Controller, 'leanweb/controller.rb'
autoload :App, 'leanweb/app.rb'
end