Method: Slideshow::DebugFilter#dump_content_to_file_debug_html
- Defined in:
- lib/slideshow/filters/debug_filter.rb
#dump_content_to_file_debug_html(content) ⇒ Object
use it to dump content before html post processing
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/slideshow/filters/debug_filter.rb', line 29 def dump_content_to_file_debug_html( content ) # NB: using attribs from mixed in class # - opts # - outdir return content unless config.verbose? outname = "#{outdir}/#{@name}.debug.html" puts " Dumping content before html post processing to #{outname}..." File.open( outname, 'w' ) do |f| f.write( content ) end content end |