Closed emilecantin closed 8 years ago
yes, this would be very useful, especially when initializing a namespace in the requiring file
+1
+1
+1
+1
+1
-6
Ya mincer is actively developed and works identical to sprockets. I'm porting to CF as well.
+1
+1
fwiw, I moved to Mincer and later to Browserify with the base less precompiler. Browserify ended up being a much cleaner solution.
In connect-assets snockets is used for compile js, very useful module. I was trying to force loading first file, then required. Without require_self it will not work.
Moving to another tool will take to much time.
I like this directive. It's a potential candidate for a future release, but not the upcoming 2.0 release.
I don't use snockets anymore, so I'll go ahead and close the issue.
Hi,
It would be really nice for snockets to support the require_self directive:
https://github.com/sstephenson/sprockets#the-require_self-directive