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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can/could templ support plain text? #731

Closed
jonfriesen opened this issue May 6, 2024 · 3 comments
Closed

Can/could templ support plain text? #731

jonfriesen opened this issue May 6, 2024 · 3 comments

Comments

@jonfriesen
Copy link

I'm writing some email templates and require both plaintext and html versions.

Using templ for the html is wonderful 馃グ

but I have to use the Go stdlib template for the plaintext which is... well it's not templ.

Any chance this could be supported? or a hacky way to make it work?

@a-h
Copy link
Owner

a-h commented May 6, 2024

Does this answer?

#385 (comment)

@a-h
Copy link
Owner

a-h commented May 6, 2024

I do like the idea of plain text, since it might be useful for building complex terminal apps.

@jonfriesen
Copy link
Author

Thanks for your responses! The comment you linked looks like it'll do the trick!

I think there could be a lot of opportunity with plain text support. It'd be pretty cool if templ could work with some of the charm libraries.

That said, I also respect the "do one thing super well" aspect:

Enable Go developers to build strongly typed, component-based HTML user interfaces with first-class developer tooling, and a short learning curve.

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

2 participants