Debian Codegraph @

test/syntax/source/code/erb

raw
1 <%# this is a comment %>
2
3 <% @posts.each do |post| %>
4 <p><%= link_to post.title, post %></p>
5 <% end %>
6
7 <%- available_things = things.select(&:available?) -%>
8 <%%- x = 1 + 2 -%%>
9 <%% value = 'real string #{@value}' %%>
10 <%%= available_things.inspect %%>