middleman/middleman-syntax

View on GitHub
fixtures/test-app/source/code_html.html.erb

Summary

Maintainability
Test Coverage

<h1>Ruby</h1>

<% code('ruby') do %>
def foo(bar)
  puts "baz"
end
<% end %>

<h1>Whatever</h1>

<% code do %>
This is some code
<% end %>

<h1>Options</h1>

<% code('ruby', {:line_numbers => true, :start_line => 7}) do %>
def foo(bar)
  puts "baz"
end
<% end %>