Sha256: f4d50dca646eeea650e79f1ec252225898d0fbbcfe8584c141b481cb2dc3d47e
Contents?: true
Size: 469 Bytes
Versions: 2
Compression:
Stored size: 469 Bytes
Contents
namespace :st do desc 'Wrap html with comments at the beginning and the end of file (for tracking partial template on generated html)' task :html_wrap, :glob do |t, args| SourceTools.glob(args[:glob]){ |path| content = path.read next if content =~ /\A<!-- begin/ puts "Processing #{path}" SourceTools.wrap_source( path, content, :header => "<!-- begin #{path} -->", :footer => "<!-- end #{path} -->") } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
source-tools-0.6.1 | lib/source-tools/tasks/html_wrap.rb |
source-tools-0.6.0 | lib/source-tools/tasks/html_wrap.rb |