Created
July 30, 2009 19:41
-
-
Save charlesroper/158875 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From ffc228ef071f2a0bac2838d8451ad1f07c090701 Mon Sep 17 00:00:00 2001 | |
From: Charles Roper <charles.roper@gmail.com> | |
Date: Thu, 30 Jul 2009 20:38:04 +0100 | |
Subject: [PATCH] Added option to command-line tool for wrapping attribs with double-quotes | |
--- | |
lib/haml/exec.rb | 5 +++++ | |
1 files changed, 5 insertions(+), 0 deletions(-) | |
diff --git a/lib/haml/exec.rb b/lib/haml/exec.rb | |
index 7b055bb..7aaa143 100644 | |
--- a/lib/haml/exec.rb | |
+++ b/lib/haml/exec.rb | |
@@ -299,6 +299,11 @@ END | |
@options[:for_engine][:escape_html] = true | |
end | |
+ opts.on('-q', '--double-quote-attribs', | |
+ 'Set attribute wrapper to double-quotes (default is single).') do | |
+ @options[:for_engine][:attr_wrapper] = '"' | |
+ end | |
+ | |
opts.on('-r', '--require FILE', "Same as 'ruby -r'.") do |file| | |
@options[:requires] << file | |
end | |
-- | |
1.6.3.msysgit.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment