Sha256: c0c47bb5ea12fdd2c70331700d91ebf62b519feff27dba5e1214b15b77978ea5

Contents?: true

Size: 421 Bytes

Versions: 3

Compression:

Stored size: 421 Bytes

Contents

<%
line_numbers ||= false
language ||= "html"
wrap ||= nil;
%>
<% code ||= capture do %><%= yield %><% end %>
<div class="code not-prose <%= "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

3 entries across 3 versions & 1 rubygems

Version Path
lookbook-0.7.2.beta.0 app/views/lookbook/components/_code.html.erb
lookbook-0.7.1 app/views/lookbook/components/_code.html.erb
lookbook-0.7.0 app/views/lookbook/components/_code.html.erb