<% if content = widget.content %> <% if lookup_context.exists?(content.embed_view_path) %> <%= render template: content.embed_view_path, locals: {obj: content} %> <% else %> <%= content.display_title %> <% end %> <% end %>