Sha256: 6aa55a70b9783e25d67448e5ac9ed60ba64548c1dda04769ad41d10b4d47be24

Contents?: true

Size: 726 Bytes

Versions: 15

Compression:

Stored size: 726 Bytes

Contents

<% if RESTFramework.config.use_vendored_assets %>
  <%= javascript_include_tag RESTFramework::EXTERNAL_JS_NAME, defer: true %>
  <%= stylesheet_link_tag RESTFramework::EXTERNAL_CSS_NAME %>

  <% RESTFramework::EXTERNAL_UNSUMMARIZED_ASSETS.each do |name, cfg| %>
    <% if cfg[:place] == "javascripts" %>
      <%= javascript_include_tag "rest_framework/#{name}", defer: true, **cfg[:extra_tag_attrs] %>
    <% elsif cfg[:place] == "stylesheets" %>
      <%= stylesheet_link_tag "rest_framework/#{name}", **cfg[:extra_tag_attrs] %>
    <% else %>
      <% raise "Unknown asset place." %>
    <% end %>
  <% end %>
<% else %>
  <% RESTFramework::EXTERNAL_ASSETS.each do |name, cfg| %>
    <%= cfg[:tag] %>
  <% end %>
<% end %>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rest_framework-1.0.0.beta2 app/views/rest_framework/head/_external.html.erb
rest_framework-1.0.0.beta1 app/views/rest_framework/head/_external.html.erb
rest_framework-0.11.0 app/views/rest_framework/head/_external.html.erb
rest_framework-0.10.0 app/views/rest_framework/head/_external.html.erb
rest_framework-0.9.16 app/views/rest_framework/head/_external.html.erb
rest_framework-0.9.15 app/views/rest_framework/head/_external.html.erb
rest_framework-0.9.14 app/views/rest_framework/head/_external.html.erb
rest_framework-0.9.12.pre.1.pre.g39306cb app/views/rest_framework/head/_external.html.erb
rest_framework-0.9.11.pre.40.pre.g5dcad32 app/views/rest_framework/head/_external.html.erb
rest_framework-0.9.11 app/views/rest_framework/head/_external.html.erb
rest_framework-0.9.10 app/views/rest_framework/head/_external.html.erb
rest_framework-0.9.9 app/views/rest_framework/head/_external.html.erb
rest_framework-0.9.8 app/views/rest_framework/head/_external.html.erb
rest_framework-0.9.7 app/views/rest_framework/head/_external.html.erb
rest_framework-0.9.6 app/views/rest_framework/head/_external.html.erb