ERB Input:
<button @click.prevent="something">Button</button>
Output:
class ButtonComponent < Phlex::HTML
def template
button(click.: true, prevent: %(something)) { %(Button)
}
end
end
Expected output:
class ButtonComponent < Phlex::HTML
def template
button("@click.prevent": %(something)) { %(Button) }
end
end
@adamlogic experienced this in the GoRails Phlex episode: https://youtu.be/l4bQSfqZZfQ&t=975