Skip to content
This repository has been archived by the owner on Mar 10, 2021. It is now read-only.

:classes option doesn't work if followed by a do block #103

Open
yulolimum opened this issue Apr 21, 2017 · 0 comments
Open

:classes option doesn't work if followed by a do block #103

yulolimum opened this issue Apr 21, 2017 · 0 comments
Assignees
Milestone

Comments

@yulolimum
Copy link
Member

yulolimum commented Apr 21, 2017

@jamonholmgren - I dont think this actually works: https://github.com/infinitered/thesis-phoenix#custom-classes-or-id

<%= content(@conn, "test", :html, classes: "test-class") do %>
  <p>
          Quem firmissimum ullamco quae esse e commodo de incurreret o
          deserunt. Nam e domesticarum, incurreret dolor est officia cohaerescant, de aut
          instituendarum se probant aliqua eram occaecat duis ea nostrud consectetur non
          mentitum, vidisse magna laboris constias, elit officia aut adipisicing ab de
          quorum aute malis officia.
  </p>
<% end %>

However, this works:

<%
  placeholder = """
    <p>At vero eos et accusamus et iusto odio dignissimos
    ducimus qui blanditiis praesentium voluptatum deleniti
    atque corrupti quos dolores.</p>
  """
%>

<%= content(@conn, "test", :html, do: placeholder, classes: "test-class") %>

@jamonholmgren jamonholmgren added this to the Version 1.0 milestone May 18, 2017
@yulolimum yulolimum changed the title :classes option doesn't work if followed by a do block :classes option doesn't work if followed by a do block Jun 20, 2017
@silasjmatson silasjmatson self-assigned this Jul 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants