Skip to content

Commit

Permalink
Merge pull request #30 from drewboardman/erb
Browse files Browse the repository at this point in the history
Settings now accept erb'd files
  • Loading branch information
uchagani committed Jan 8, 2016
2 parents 9f5c514 + 084a873 commit b109a8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/taza/settings.rb
Expand Up @@ -23,7 +23,7 @@ def self.config_folder # :nodoc:
end

def self.site_file(site_name) # :nodoc:
YAML.load_file(File.join(config_folder,"#{site_name.underscore}.yml"))[ENV['TAZA_ENV']]
YAML.load(ERB.new(File.read(File.join(config_folder,"#{site_name.underscore}.yml"))).result)[ENV['TAZA_ENV']]
end

def self.path # :nodoc:
Expand Down

0 comments on commit b109a8f

Please sign in to comment.