Class: Stylo::AssetLoader

Inherits:
Object
  • Object
show all
Defined in:
lib/stylo/asset_loader.rb

Class Method Summary collapse

Class Method Details

.load_content(path) ⇒ Object



3
4
5
6
7
# File 'lib/stylo/asset_loader.rb', line 3

def self.load_content(path)
  path = File.join(Stylo::Config.options[:asset_location], path)

  File.read(path) if File.exist?(path)
end