From e145d319eb921f34546c5b534e8dfcad90b8d3e7 Mon Sep 17 00:00:00 2001 From: nex3 Date: Fri, 30 Mar 2007 07:13:45 +0000 Subject: [PATCH] Okay, that didn't work. Unfortunately, Rails' plugin installer won't install from svn:externals when it's pointed to an HTTP repository (or, rather, the Subversion http repository doesn't tell about its externals). Too bad. git-svn-id: svn://hamptoncatlin.com/haml/trunk@461 7063305b-7217-0410-af8c-cdc13e5119b9 --- init.rb | 2 -- lib/haml/exec.rb | 12 ++++++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/init.rb b/init.rb index 84e75340..3d4283a9 100644 --- a/init.rb +++ b/init.rb @@ -2,8 +2,6 @@ require 'haml' require 'haml/template' require 'sass' require 'sass/plugin' -require 'templated_mailer/templated_mailer' ActionView::Base.register_template_handler('haml', Haml::Template) -ActionMailer::Base.register_template_extension('haml') Sass::Plugin.update_stylesheets diff --git a/lib/haml/exec.rb b/lib/haml/exec.rb index 4da255dc..814a505f 100644 --- a/lib/haml/exec.rb +++ b/lib/haml/exec.rb @@ -127,8 +127,16 @@ END end File.open(File.join(dir, 'init.rb'), 'w') do |file| - file.puts "require 'rubygems'\n" + - File.read(File.join(File.dirname(__FILE__), '..', '..', 'init.rb')) + file.puts <