Sha256: 5a94b6a7d4e51f3043db810e5d765b72af1ad411e8b64c6b30f6204dbd175da3

Contents?: true

Size: 304 Bytes

Versions: 9

Compression:

Stored size: 304 Bytes

Contents

require "html_page/capture"

module EmberRailsHelper
  def render_ember_app(name, &block)
    EmberCli[name].build

    markup_capturer = HtmlPage::Capture.new(self, &block)

    head, body = markup_capturer.capture

    render html: EmberCli[name].index_html(head: head, body: body).html_safe
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ember-cli-rails-0.12.2 app/helpers/ember_rails_helper.rb
ember-cli-rails-0.12.1 app/helpers/ember_rails_helper.rb
ember-cli-rails-0.12.0 app/helpers/ember_rails_helper.rb
ember-cli-rails-0.11.0 app/helpers/ember_rails_helper.rb
ember-cli-rails-0.10.0 app/helpers/ember_rails_helper.rb
ember-cli-rails-0.9.0 app/helpers/ember_rails_helper.rb
ember-cli-rails-0.8.7 app/helpers/ember_rails_helper.rb
ember-cli-rails-0.8.6 app/helpers/ember_rails_helper.rb
ember-cli-rails-0.8.5 app/helpers/ember_rails_helper.rb