Sha256: b485ca6226ac3e4632b1ff8a4bc145f6e1d4dd9d80fd2c201cffd67b45cb85bc

Contents?: true

Size: 413 Bytes

Versions: 24

Compression:

Stored size: 413 Bytes

Contents

<% component = capture do %>
  <% if example.has_block? %>
    <%= render component_doc.partial_path, example.html_safe_data do %>
      <%= example.block.html_safe %>
    <% end %>
  <% else %>
    <%= render component_doc.partial_path, example.html_safe_data %>
  <% end %>
<% end %>

<% if example.has_embed? %>
  <%= ERB.new(example.embed).result(binding).html_safe %>
<% else %>
  <%= component %>
<% end %>

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
govuk_publishing_components-16.18.0 app/views/govuk_publishing_components/component_guide/component_doc/_component_output.html.erb
govuk_publishing_components-16.17.0 app/views/govuk_publishing_components/component_guide/component_doc/_component_output.html.erb
govuk_publishing_components-16.16.0 app/views/govuk_publishing_components/component_guide/component_doc/_component_output.html.erb
govuk_publishing_components-16.15.0 app/views/govuk_publishing_components/component_guide/component_doc/_component_output.html.erb
govuk_publishing_components-16.14.1 app/views/govuk_publishing_components/component_guide/component_doc/_component_output.html.erb
govuk_publishing_components-16.14.0 app/views/govuk_publishing_components/component_guide/component_doc/_component_output.html.erb
govuk_publishing_components-16.13.0 app/views/govuk_publishing_components/component_guide/component_doc/_component_output.html.erb
govuk_publishing_components-16.12.0 app/views/govuk_publishing_components/component_guide/component_doc/_component_output.html.erb
govuk_publishing_components-16.11.0 app/views/govuk_publishing_components/component_guide/component_doc/_component_output.html.erb
govuk_publishing_components-16.10.1 app/views/govuk_publishing_components/component_guide/component_doc/_component_output.html.erb
govuk_publishing_components-16.10.0 app/views/govuk_publishing_components/component_guide/component_doc/_component_output.html.erb
govuk_publishing_components-16.9.2 app/views/govuk_publishing_components/component_guide/component_doc/_component_output.html.erb
govuk_publishing_components-16.9.1 app/views/govuk_publishing_components/component_guide/component_doc/_component_output.html.erb
govuk_publishing_components-16.9.0 app/views/govuk_publishing_components/component_guide/component_doc/_component_output.html.erb
govuk_publishing_components-16.8.0 app/views/govuk_publishing_components/component_guide/component_doc/_component_output.html.erb
govuk_publishing_components-16.7.0 app/views/govuk_publishing_components/component_guide/component_doc/_component_output.html.erb
govuk_publishing_components-16.6.0 app/views/govuk_publishing_components/component_guide/component_doc/_component_output.html.erb
govuk_publishing_components-16.5.0 app/views/govuk_publishing_components/component_guide/component_doc/_component_output.html.erb
govuk_publishing_components-16.4.0 app/views/govuk_publishing_components/component_guide/component_doc/_component_output.html.erb
govuk_publishing_components-16.3.0 app/views/govuk_publishing_components/component_guide/component_doc/_component_output.html.erb