Sha256: d1b74bf0156d25ca4590ee59f3a2724cd44303386d126a19a3f912c58842d00d
Contents?: true
Size: 604 Bytes
Versions: 2
Compression:
Stored size: 604 Bytes
Contents
require "ember-cli/capture" module EmberRailsHelper def include_ember_index_html(name, &block) markup_capturer = EmberCli::Capture.new(sprockets: self, &block) head, body = markup_capturer.capture html = EmberCli[name].index_html( sprockets: self, head: head, body: body, ) render inline: html end def include_ember_script_tags(name, **options) javascript_include_tag(*EmberCli[name].exposed_js_assets, options) end def include_ember_stylesheet_tags(name, **options) stylesheet_link_tag(*EmberCli[name].exposed_css_assets, options) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ember-cli-rails-0.4.3 | app/helpers/ember_rails_helper.rb |
ember-cli-rails-0.4.2 | app/helpers/ember_rails_helper.rb |