Sha256: 996921eab9036c7efc45cfcbf497910ae4145b6eca8ca7df548878d11037b688
Contents?: true
Size: 1.18 KB
Versions: 8
Compression:
Stored size: 1.18 KB
Contents
# frozen_string_literal: true # Copyright 2016 Liqwyd Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. require 'sinatra/base' require 'sinatra/cookies' require 'sinatra/flash' require 'mustache' require 'mustache/sinatra' module Cyclid module UI module Controllers # Base class for all Sinatra controllers class Base < Sinatra::Base register Mustache::Sinatra set :mustache, templates: File.expand_path('../../templates/', __FILE__), views: File.expand_path('../../views/', __FILE__), namespace: Cyclid::UI register Sinatra::Flash helpers Sinatra::Cookies, Helpers, AuthHelpers end end end end
Version data entries
8 entries across 8 versions & 1 rubygems