lib/depo/build.rb in depo-0.0.3 vs lib/depo/build.rb in depo-0.0.4
- old
+ new
@@ -22,10 +22,10 @@
file_path
end
def profile_template
return @template if @template
- tpl_string = IO.readlines("#{File.dirname(__FILE__)}/templates/profile.js",'').to_s
+ tpl_string = File.read("#{File.dirname(__FILE__)}/templates/profile.js")
@template = ERB.new(tpl_string)
end
def layers
Depo.config.build_profile.pages.map do |page|