ForageWeb.ForageView.fragment
You're seeing just the macro
fragment
, go back to ForageWeb.ForageView module for more information.
Creates a fragment that can be reused in the same template.
It's meant to be used in an EEx template, which has some synctatic restrictions that make it hard to set a variable to a an EEx fragment.
Example
<%= fragment widget do %>
<div class="my-widget">
Add an EEx fragment here.
Can contain <%= @dynamic %> fragments.
</div>
<% end %>
<%= widget %>