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

Hero should only work on hero func files #30

Open
spekary opened this issue Aug 11, 2017 · 0 comments
Open

Hero should only work on hero func files #30

spekary opened this issue Aug 11, 2017 · 0 comments

Comments

@spekary
Copy link

spekary commented Aug 11, 2017

Hero currently processes all of the files in a directory. Pure html files are compiled to blank .go files, and parent files are compiled just to a package name and nothing else.

Instead, I propose hero do two passes when running:

  1. Examine all the files, looking for files that have <%: tags, and any other files that it determines it will compile to actually contain .go code.
  2. Only process files that have been found and recorded, and leave all other files alone.
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