Class: Jasmine::Headless::JSTTemplate
- Inherits:
-
Sprockets::JstProcessor
- Object
- Sprockets::JstProcessor
- Jasmine::Headless::JSTTemplate
- Includes:
- FileChecker
- Defined in:
- lib/jasmine/headless/jst_template.rb
Instance Method Summary collapse
Methods included from FileChecker
#alert_bad_format, #alert_if_bad_format?, #bad_format?
Instance Method Details
#evaluate(*args) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/jasmine/headless/jst_template.rb', line 6 def evaluate(*args) if bad_format?(file) alert_bad_format(file) return '' end %{<script type="text/javascript">#{super}</script>} end |