Module: Nesta::Overrides

Defined in:
lib/nesta/overrides.rb

Defined Under Namespace

Modules: Renderers

Class Method Summary collapse

Class Method Details

.load_local_appObject



48
49
50
51
# File 'lib/nesta/overrides.rb', line 48

def self.load_local_app
  app_file = Nesta::Path.local('app.rb')
  require app_file if File.exist?(app_file)
end

.load_theme_appObject



53
54
55
56
57
58
# File 'lib/nesta/overrides.rb', line 53

def self.load_theme_app
  if Nesta::Config.theme
    app_file = Nesta::Path.themes(Nesta::Config.theme, 'app.rb')
    require app_file if File.exist?(app_file)
  end
end

.local_view_pathObject



36
37
38
# File 'lib/nesta/overrides.rb', line 36

def self.local_view_path
  Nesta::Path.local("views")
end

.theme_view_pathObject



40
41
42
43
44
45
46
# File 'lib/nesta/overrides.rb', line 40

def self.theme_view_path
  if Nesta::Config.theme.nil?
    nil
  else
    Nesta::Path.themes(Nesta::Config.theme, "views")
  end
end