lib/awestruct/renderable_file.rb in awestruct-0.2.11 vs lib/awestruct/renderable_file.rb in awestruct-0.2.12
- old
+ new
@@ -18,10 +18,10 @@
end
end
end
def raw_page_content
- File.read( self.source_path )
+ File.read( self.source_path ).tap {|f| f.force_encoding(@site.encoding) if @site.encoding }
end
def render(context)
raw_page_content
end