Sha256: 8a3063f014cab9db947a44d60a408afc30284c33db9829b221330a3201ab802a
Contents?: true
Size: 960 Bytes
Versions: 3
Compression:
Stored size: 960 Bytes
Contents
require 'bundler' require 'active_support/core_ext/hash' require 'sinatra' Bundler.require :default, settings.environment Eucalypt.set_root __dir__ Static = Eucalypt::Static.new(Eucalypt.path('app', 'static'), symbolize: true).freeze class ApplicationController < Sinatra::Base # Set server set :server, %w[thin webrick] # Set core application file set :app_file, __FILE__ # Set application root directory set :root, Eucalypt.root # Set views directory set :views, Eucalypt.path('app', 'views') # Set default ERB template set :erb, layout: :'layouts/main' # Set Hanami HTML and asset helpers helpers Hanami::Helpers, Hanami::Assets::Helpers end Eucalypt.require 'config', '*.rb' Eucalypt.require 'config', 'initializers', '*.rb' Eucalypt.require 'app', 'helpers', '{application_helper.rb}' Eucalypt.require 'app', 'controllers', 'application_controller.rb' Eucalypt.require 'app', '{models,policies,helpers,controllers}', '*.rb'
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
eucalypt-0.3.5 | lib/eucalypt/core/templates/eucalypt/app.rb |
eucalypt-0.3.4 | lib/eucalypt/core/templates/eucalypt/app.rb |
eucalypt-0.3.3 | lib/eucalypt/core/templates/eucalypt/app.rb |