lib/genit/page_compiler.rb in genit-0.4 vs lib/genit/page_compiler.rb in genit-0.4.1
- old
+ new
@@ -12,10 +12,10 @@
# working_dir - The String working directory, where live the project.
# filename - The String name of the page
def initialize working_dir, filename
@working_dir = working_dir
@filename = filename
- @template = HtmlDocument.open(File.join(@working_dir, 'templates/main.html'))
+ @template = XmlDocument.open(File.join(@working_dir, 'templates/main.html'))
end
# Public: Compile the page.
#
# Returns a Nokogiri::HTML document.