Class: Jasmine::Headless::CSSTemplate
- Inherits:
-
Tilt::Template
- Object
- Tilt::Template
- Jasmine::Headless::CSSTemplate
show all
- Includes:
- FileChecker
- Defined in:
- lib/jasmine/headless/css_template.rb
Instance Method Summary
collapse
#alert_bad_format, #alert_if_bad_format?, #bad_format?
Instance Method Details
#evaluate(scope, locals, &block) ⇒ Object
10
11
12
13
14
15
16
|
# File 'lib/jasmine/headless/css_template.rb', line 10
def evaluate(scope, locals, &block)
if bad_format?(file)
alert_bad_format(file)
return ''
end
file ? %{<link rel="stylesheet" href="#{file}" type="text/css" />} : data
end
|
#prepare ⇒ Object
8
|
# File 'lib/jasmine/headless/css_template.rb', line 8
def prepare ; end
|