Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with mixing inline text and equal level components. #214

Open
paradox460 opened this issue Nov 14, 2023 · 0 comments
Open

Issue with mixing inline text and equal level components. #214

paradox460 opened this issue Nov 14, 2023 · 0 comments

Comments

@paradox460
Copy link

Describe the bug
When trying to render some components mixed into inline text, sometimes text after the inline component does not render.

To Reproduce
Assuming a component like this:

temple do
  ~s[<div>#{@assigned_value}</div>]
  div do
   hr # or some other void tag
  end
end

The following will cause issues:

temple do
  div do
    "This is some inline text"
    c &mycomponent/1, assigned_value: "something"
    if true do
      " this will never render"
      c &mycomponent/1, assigned_value: "something else"
    end
  end
end

Expected behavior
The whole thing will render

Desktop (please complete the following information):

  • OS: MacOS 13.5.1
  • Temple Version: 0.12.0
  • Erlang: 26.1.2
  • Elixir: 1.15.7-otp-26

Additional context
I tried to reproduce this in a test case against main, but was unable to. So you may have already fixed it. I can try to reproduce it in the released version tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant