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