Sha256: b04464d69d3374bc44644ae650ad3ff47176c9088d7cbf413e8b85a52c0fa47a

Contents?: true

Size: 402 Bytes

Versions: 7

Compression:

Stored size: 402 Bytes

Contents

<%
line_numbers ||= false
language ||= "html"
wrap ||= nil;
%>
<% code = capture do %><%= yield %><% end %>
<div class="code <%= "numbered" if line_numbers %> <%= classes %>"
  x-data="code"
  :class="{'wrapped': wrap}"
  <% if wrap.present? %>x-effect="wrap = <%= wrap %>"<% end %>
>
  <pre><code class="highlight"><%= highlight(code.strip, language, line_numbers: line_numbers) %></code></pre>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lookbook-0.6.1 app/views/lookbook/components/_code.html.erb
lookbook-0.6.0 app/views/lookbook/components/_code.html.erb
lookbook-0.5.2 app/views/lookbook/components/_code.html.erb
lookbook-0.5.1 app/views/lookbook/components/_code.html.erb
lookbook-0.5.0 app/views/lookbook/components/_code.html.erb
lookbook-0.5.0.beta.2 app/views/lookbook/components/_code.html.erb
lookbook-0.5.0.beta.1 app/views/lookbook/components/_code.html.erb