class SC::Builder::TestIndex

Builds an HTML files. This will setup an HtmlContext and then invokes the render engines for each source before finally rendering the layout.

Public Instance Methods

build(dst_path) click to toggle source
# File lib/sproutcore/builders/test_index.rb, line 16
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