haml2slim 0.4.4 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +1 -0
- data/lib/haml2slim/converter.rb +1 -1
- data/lib/haml2slim/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
|
@@ -10,6 +10,7 @@ You may convert files using the included executable `haml2slim`.
|
|
|
10
10
|
|
|
11
11
|
Usage: haml2slim INPUT_FILENAME_OR_DIRECTORY [OUTPUT_FILENAME_OR_DIRECTORY] [options]
|
|
12
12
|
--trace Show a full traceback on error
|
|
13
|
+
-d, --delete Delete HAML files
|
|
13
14
|
-h, --help Show this message
|
|
14
15
|
-v, --version Print version
|
|
15
16
|
|
data/lib/haml2slim/converter.rb
CHANGED
|
@@ -24,7 +24,7 @@ module Haml2Slim
|
|
|
24
24
|
case line[0]
|
|
25
25
|
when ?%, ?., ?# then parse_tag(line)
|
|
26
26
|
when ?: then "#{line[1..-1]}:"
|
|
27
|
-
when ?! then line.sub(/^!!!/, '
|
|
27
|
+
when ?! then line.sub(/^!!!/, 'doctype')
|
|
28
28
|
when ?-, ?= then line
|
|
29
29
|
when ?~ then line.sub(/^~/, '=')
|
|
30
30
|
when ?/ then line.sub(/^\//, '/!')
|
data/lib/haml2slim/version.rb
CHANGED