Class: Erbside::Javascript
Overview
Constant Summary
collapse
- EXTENSIONS =
%w{.js}
Constants inherited
from Inline
Inline::TAG
Instance Attribute Summary
Attributes inherited from Inline
#context, #file, #result, #type
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Inline
#block_parts, #changed?, #content, #exist?, extension_list, factory, #format_block, #format_side, inherited, #initialize, #line_match, map, #output, register, #relative_output, #remarker_multiline, #render, #render_blocks, #render_result, #render_sides, #render_template, #save
Class Method Details
.extensions ⇒ Object
12
13
14
|
# File 'lib/erbside/inline/js.rb', line 12
def self.extensions
EXTENSIONS
end
|
Instance Method Details
#block_match ⇒ Object
32
33
34
35
36
|
# File 'lib/erbside/inline/js.rb', line 32
def block_match
b = Regexp.escape()
e = Regexp.escape()
%r{^(\s*)(#{b})(\s*)(:#{TAG})(\+\d*)?(\:)(\s*)((?m:.*?))(\s#{e})}
end
|
17
18
19
|
# File 'lib/erbside/inline/js.rb', line 17
def
'//'
end
|
22
23
24
|
# File 'lib/erbside/inline/js.rb', line 22
def
'/*'
end
|
27
28
29
|
# File 'lib/erbside/inline/js.rb', line 27
def
'*/'
end
|