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