From ac9ae8fcee80f139bb21ea97f4b0e1099c1bd3be Mon Sep 17 00:00:00 2001 From: Ben Hollis Date: Sun, 4 Mar 2012 17:26:44 -0800 Subject: [PATCH] Rename tilt_template to render_to_file --- middleman-core/lib/middleman-core/cli/build.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/middleman-core/lib/middleman-core/cli/build.rb b/middleman-core/lib/middleman-core/cli/build.rb index d43d29fe..63bf394c 100644 --- a/middleman-core/lib/middleman-core/cli/build.rb +++ b/middleman-core/lib/middleman-core/cli/build.rb @@ -106,7 +106,7 @@ module Middleman::Cli # # @param [Middleman::Sitemap::Page] page # @return [void] - def tilt_template(page) + def render_to_file(page) build_dir = self.class.shared_instance.build_dir output_file = File.join(self.class.shared_instance.build_dir, page.destination_path) @@ -223,7 +223,7 @@ module Middleman::Cli next if page.ignored? next if @config[:glob] && !File.fnmatch(@config[:glob], page.path) - base.tilt_template(page) + base.render_to_file(page) output_path = File.join(@destination, page.destination_path) @cleaning_queue.delete(Pathname.new(output_path).realpath) if cleaning?