lib/jsduck/index_html.rb in jsduck-3.7.0 vs lib/jsduck/index_html.rb in jsduck-3.8.0

- old
+ new

@@ -1,6 +1,7 @@ require 'jsduck/logger' +require 'jsduck/io' require 'fileutils' module JsDuck # Deals with creation of main HTML or PHP files. @@ -47,10 +48,10 @@ end # Opens in_file, replaces {keys} inside it, writes to out_file def write_template(in_file, out_file, replacements) Logger.instance.log("Writing", out_file) - html = IO.read(in_file) + html = JsDuck::IO.read(in_file) html.gsub!(/\{\w+\}/) do |key| replacements[key] ? replacements[key] : key end File.open(out_file, 'w') {|f| f.write(html) } end