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

templ generate custom name pattern #608

Closed
ikaasraa opened this issue Mar 10, 2024 · 3 comments
Closed

templ generate custom name pattern #608

ikaasraa opened this issue Mar 10, 2024 · 3 comments

Comments

@ikaasraa
Copy link

when I use templ I want to have option for custom name pattern name

hello.templ
templ generete --name-opt {}.go
hello.go

another example
hello.templ
templ generete --name-opt {}_custom.go
hello_custom.go

@a-h
Copy link
Owner

a-h commented Mar 12, 2024

Why?

@ikaasraa
Copy link
Author

I want to combine my route and handlers and templ in just one file and after generate it the name of the file is example_templ.go ... I do not like this name ... because my file is not just templ it has handlers and routes and many extra .. or is there any approach use templ in go file without .templ ????

@a-h
Copy link
Owner

a-h commented Mar 12, 2024

No. It would complicate the implementation of every command for no tangible benefit.

@a-h a-h closed this as completed Mar 12, 2024
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