Skip to content

Don't generate <template> tag if it's not necessary #16

Description

@marcoroth

Currently the helper generates <turbo-stream> elements always with the <template> tag, we should just generate it when it's actually needed.

For example, this call:

turbo_stream.reset_form("#form")

Currently generates:

<turbo-stream action="reset_form" targets="#form"><template></template></turbo-stream>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions