Sha256: aa557a945652139595e3b01bd85ac2e360fae98dbdf9795b5530a39ef78a4d2c

Contents?: true

Size: 581 Bytes

Versions: 30

Compression:

Stored size: 581 Bytes

Contents

<div class="p-4 h-full bg-white overflow-auto" data-morph-strategy="replace">
  <%= component "code", wrap: "vertical" do -%>
    <% if examples.many? %>
      <% examples.each do |example| -%>
        <%== "\n<!-- #{example[:label]} -->\n#{beautify(example[:html])}" %>
      <% end %>
    <% else -%>
      <%== beautify(examples.first[:html]) %>
    <% end %>
  <% end %>
  <% if defined?(clipboard_id) %>
    <template id="<%= clipboard_id %>">
      <% examples.each do |example| -%>
        <%== beautify(example[:html]) %>
      <%- end %>
    </template>
  <% end %>
</div>

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
lookbook-0.7.2.beta.2 app/views/lookbook/previews/panels/_output.html.erb
lookbook-0.7.2.beta.1 app/views/lookbook/previews/panels/_output.html.erb
lookbook-0.7.2.beta.0 app/views/lookbook/previews/panels/_output.html.erb
lookbook-0.7.1 app/views/lookbook/previews/panels/_output.html.erb
lookbook-0.7.0 app/views/lookbook/previews/panels/_output.html.erb
lookbook-0.6.1 app/views/lookbook/panels/_output.html.erb
lookbook-0.6.0 app/views/lookbook/panels/_output.html.erb
lookbook-0.5.2 app/views/lookbook/panels/_output.html.erb
lookbook-0.5.1 app/views/lookbook/panels/_output.html.erb
lookbook-0.5.0 app/views/lookbook/panels/_output.html.erb