Sha256: 90eb05eef6f3616cba690020d497d78e3558625e3643ff34a260564067168498

Contents?: true

Size: 837 Bytes

Versions: 13

Compression:

Stored size: 837 Bytes

Contents

# ===========================================================================
# Project:   Abbot - SproutCore Build Tools
# Copyright: ©2009 Apple, Inc.
#            portions copyright @2006-2009 Sprout Systems, Inc.
#            and contributors
# ===========================================================================

require File.expand_path(File.join(File.dirname(__FILE__), 'base'))

module SC

  # Builds an HTML files.  This will setup an HtmlContext and then invokes
  # the render engines for each source before finally rendering the layout.
  class Builder::TestIndex < Builder::Base
    
    def build(dst_path)
      require 'json'
      items = entry.source_entries.map do |e|
        { "filename" => e.filename.ext(''), "url" => e.url }
      end
      writelines dst_path, [items.to_json]
    end
    
  end
  
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
sproutit-sproutcore-1.0.0.20090407205609 lib/sproutcore/builders/test_index.rb
sproutit-sproutcore-1.0.0.20090408130025 lib/sproutcore/builders/test_index.rb
sproutit-sproutcore-1.0.0.20090416161445 lib/sproutcore/builders/test_index.rb
sproutit-sproutcore-1.0.0.20090720093355 lib/sproutcore/builders/test_index.rb
sproutit-sproutcore-1.0.0.20090720202429 lib/sproutcore/builders/test_index.rb
sproutit-sproutcore-1.0.0.20090721125122 lib/sproutcore/builders/test_index.rb
sproutit-sproutcore-1.0.126 lib/sproutcore/builders/test_index.rb
sproutit-sproutcore-1.0.20090721145236 lib/sproutcore/builders/test_index.rb
sproutit-sproutcore-1.0.20090721145251 lib/sproutcore/builders/test_index.rb
sproutit-sproutcore-1.0.20090721145280 lib/sproutcore/builders/test_index.rb
sproutit-sproutcore-1.0.20090721145281 lib/sproutcore/builders/test_index.rb
sproutit-sproutcore-1.0.20090721145282 lib/sproutcore/builders/test_index.rb
sproutit-sproutcore-1.0.203 lib/sproutcore/builders/test_index.rb