Sha256: d5b85b2a4e532690e65dc497820e7fb6954b5fcbd4e61c8bb251d829f4b42ee6
Contents?: true
Size: 799 Bytes
Versions: 18
Compression:
Stored size: 799 Bytes
Contents
# =========================================================================== # Project: Abbot - SproutCore Build Tools # Copyright: ©2009 Apple Inc. # portions copyright @2006-2009 Sprout Systems, Inc. # and contributors # =========================================================================== require "sproutcore/builders/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
18 entries across 18 versions & 1 rubygems