Sha256: 758da6abc92ff0baa52d58ffcb430ef3d8b2589f092e70cb783e1e5716108533
Contents?: true
Size: 790 Bytes
Versions: 47
Compression:
Stored size: 790 Bytes
Contents
# =========================================================================== # Project: Abbot - SproutCore Build Tools # Copyright: ©2009 Apple Inc. # portions copyright @2006-2011 Strobe 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
47 entries across 47 versions & 1 rubygems