Module: Nesta::Overrides

Defined in:
lib/nesta/overrides.rb

Defined Under Namespace

Modules: Renderers

Class Method Summary collapse

Class Method Details

.load_local_appObject



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

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

.load_theme_appObject



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

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



22
23
24
# File 'lib/nesta/overrides.rb', line 22

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

.theme_view_pathObject



26
27
28
29
30
31
32
# File 'lib/nesta/overrides.rb', line 26

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