Sha256: 5a3755f61da47adf5826d9905496a14ed75d88285c23f1b8ae0aed2c1e69f4fa
Contents?: true
Size: 627 Bytes
Versions: 1
Compression:
Stored size: 627 Bytes
Contents
<div class="h-full"> <% if rendered_examples.many? %> <%= render_component :code, language: rendered_examples.first[:source_lang][:name], line_numbers: true, full_height: true do -%> <%- rendered_examples.each.with_index(1) do |example, i| -%> <%== "#{sprintf example[:source_lang][:comment], example[:label]}\n#{example[:source]}\n#{"\n" if i < rendered_examples.size}" %><% end %> <% end %> <% else %> <% example = rendered_examples.first %> <%= render_component :code, language: example[:source_lang][:name], line_numbers: true, full_height: true do %><%== example[:source] %><% end %> <% end %> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lookbook-1.0.0.beta.0 | app/views/lookbook/previews/panels/_source.html.erb |