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

turbo-stream elements have ugly formatting #8

Closed
a-h opened this issue May 22, 2021 · 0 comments
Closed

turbo-stream elements have ugly formatting #8

a-h opened this issue May 22, 2021 · 0 comments

Comments

@a-h
Copy link
Owner

a-h commented May 22, 2021

Reformatting turbo-stream elements results in:

{% package templates %}

{% templ Action(action string, target string, template templ.Component) %}
	<turbo-stream action={%= action %} target={%= target %}><template>
	{%! template %}
</template></turbo-stream>
{% endtempl %}

Should be like this:

{% package templates %}

{% templ Action(action string, target string, template templ.Component) %}
	<turbo-stream action={%= action %} target={%= target %}>
		<template>
			{%! template %}
		</template>
	</turbo-stream>
{% endtempl %}
@a-h a-h closed this as completed in 18a2128 May 22, 2021
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