-
-
Notifications
You must be signed in to change notification settings - Fork 746
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
Automatically load (and reload) helper modules from the "helpers" directory #238
Comments
Would these helper files be Ruby modules or just raw methods in a file? We already watch and refresh the |
Should the generated template include helpers, thus creating a more complicated empty project? Or not and simply document this magical directory? |
Ruby modules matching the name of their file (CamelCase to under_score) so that they can be unloaded before being reloaded, like Rails does. I'd leave it out of the default project, though. Documentation should be fine :-) |
Done and done. Created 3 new config variables:
These defaults mean files must be in the |
Awesome! |
To provide an experience more consistent with Rails, and allow for easier configuration of helpers and iteration on helpers while running preview server, helper modules should be automatically loaded from a "helpers" directory, and should be reloaded when they are changed while running the preview server. This should work similarly to how Rails handles helpers.
The text was updated successfully, but these errors were encountered: