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

require by index file #30

Open
yhslai opened this issue Aug 13, 2012 · 2 comments
Open

require by index file #30

yhslai opened this issue Aug 13, 2012 · 2 comments
Labels

Comments

@yhslai
Copy link

yhslai commented Aug 13, 2012

Some similar pre-compile solution, such as Sprocket and Stylus, support to require a folder by its index file.

├── app.coffee
├── lib
    └── index.coffee
    └── foo.coffee
    └── bar.coffee

in app.coffee:

#= require lib

and in index.coffee:

#= require foo
#= require bar

How about supporting it in Snockets?

@denysonique
Copy link

+1

@pthrasher
Copy link
Owner

I like this idea, I'm currently working on the next major release of snockets, and I'll consider this for 2.0. If not, a release shortly thereafter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants