Sha256: 9fae3cb7be9fea706a1083bde2710039188ee786c042cd794ded9a366a4326b3

Contents?: true

Size: 836 Bytes

Versions: 17

Compression:

Stored size: 836 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

17 entries across 17 versions & 2 rubygems

Version Path
sproutit-sproutcore-1.0.20090721145285 lib/sproutcore/builders/test_index.rb
sproutcore-1.0.1046 lib/sproutcore/builders/test_index.rb
sproutcore-1.0.1043 lib/sproutcore/builders/test_index.rb
sproutcore-1.0.1042 lib/sproutcore/builders/test_index.rb
sproutcore-1.0.1037 lib/sproutcore/builders/test_index.rb
sproutcore-1.0.1035 lib/sproutcore/builders/test_index.rb
sproutcore-1.0.1031 lib/sproutcore/builders/test_index.rb
sproutcore-1.0.1030 lib/sproutcore/builders/test_index.rb
sproutcore-1.0.1029 lib/sproutcore/builders/test_index.rb
sproutcore-1.0.1027 lib/sproutcore/builders/test_index.rb
sproutcore-1.0.1028 lib/sproutcore/builders/test_index.rb
sproutcore-1.0.1026 lib/sproutcore/builders/test_index.rb
sproutcore-1.0.1025 lib/sproutcore/builders/test_index.rb
sproutcore-1.0.1024 lib/sproutcore/builders/test_index.rb
sproutcore-1.0.1009 lib/sproutcore/builders/test_index.rb
sproutcore-1.0.1008 lib/sproutcore/builders/test_index.rb
sproutcore-1.0.1003 lib/sproutcore/builders/test_index.rb