Module: Jade::CompilationEssentials
- Included in:
- ShippedCompiler, SystemCompiler
- Defined in:
- lib/jade-ruby/compilation-essentials.rb
Overview
Used to share common things between compilers.
Instance Method Summary collapse
-
#process_result(source, result, options) ⇒ String
Responds for post-processing compilation result.
Instance Method Details
#process_result(source, result, options) ⇒ String
Responds for post-processing compilation result.
16 17 18 19 20 21 22 |
# File 'lib/jade-ruby/compilation-essentials.rb', line 16 def process_result(source, result, ) if [:client] "(function(jade) { #{ super }; return #{ [:name] }; }).call(this, jade);" else super end end |