Skip to content

Generation Directory #518

Answered by Perusae
Exerosis asked this question in Q&A
Feb 11, 2024 · 3 comments · 5 replies
Discussion options

You must be logged in to vote

Can we have the generated code mapped to a separate directory? For example: /pages/whatever.templ -> /generated/whatever_templ.go

That is really going to mess with Go, as your package names will all be in the same folder.

If the goal is to hide the generated files, if your using Visual Studio Code, go to Settings, Search "Hide" and enter the below pattern.

Pattern:

 **/**/*templ.go

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@Exerosis
Comment options

@a-h
Comment options

@Exerosis
Comment options

Comment options

You must be logged in to vote
2 replies
@Exerosis
Comment options

@joerdav
Comment options

Answer selected by a-h
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants