Skip to content

Commit

Permalink
Add document for module
Browse files Browse the repository at this point in the history
  • Loading branch information
ydah committed Aug 2, 2023
1 parent b2047b4 commit 7d535e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/slim/embedded/minify/javascript.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
module Slim
class Embedded < Filter
module Minify
# Minify embedded Javascript code in Slim templates.
module Javascript
include Tag

Expand All @@ -11,6 +12,8 @@ def on_slim_embedded(engine, body, attrs)
super(engine, minified_body, attrs)
end

private

def remove_comments!(line)
need_deletion = false
need_deletion_all = false
Expand Down
1 change: 1 addition & 0 deletions lib/slim/embedded/minify/tag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
module Slim
class Embedded < Filter
module Minify
# Minify embedded tag code in Slim templates.
module Tag
def on_slim_embedded(engine, body, attrs)
body = minify(body) if engine == :css
Expand Down

0 comments on commit 7d535e0

Please sign in to comment.