lib/cupper/entity.rb in cupper-0.1.3 vs lib/cupper/entity.rb in cupper-0.2.0
- old
+ new
@@ -33,10 +33,10 @@
File.open(@full_path,"w+") { |f| f.write(self.render_template) } if self.file?
Dir.mkdir(@full_path) if self.dir? && !(self.exist?)
end
def render_template
- ERB.new(@template).result(binding)
+ ERB.new(@template, 0, '-').result(binding)
end
# Treats entity as a file or as a dir
def file?
@type == FILE