Skip to content

Commit

Permalink
Add the preserve_patterns option.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewKvalheim committed Mar 23, 2015
1 parent d63fa80 commit cb3d4be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -40,6 +40,7 @@ activate :minify_html do |html|
html.remove_https_protocol = false # Remove HTTPS protocol
html.preserve_line_breaks = false # Preserve line breaks
html.simple_boolean_attributes = true # Use simple boolean attributes
html.preserve_patterns = nil # Patterns to preserve
end
```

Expand Down
1 change: 1 addition & 0 deletions lib/middleman-minify-html/extension.rb
Expand Up @@ -15,6 +15,7 @@ class MinifyHtmlExtension < Extension
option :remove_https_protocol, false, 'Remove HTTPS protocol'
option :preserve_line_breaks, false, 'Preserve line breaks'
option :simple_boolean_attributes, true, 'Use simple boolean attributes'
option :preserve_patterns, nil, 'Patterns to preserve'

def initialize(*)
super
Expand Down

0 comments on commit cb3d4be

Please sign in to comment.