pthrasher / snockets

Sprockets-style script concatenation for Node
119 stars 39 forks source link

Support for require_self #18

Closed emilecantin closed 8 years ago

emilecantin commented 12 years ago

Hi,

It would be really nice for snockets to support the require_self directive:

https://github.com/sstephenson/sprockets#the-require_self-directive

denysonique commented 12 years ago

yes, this would be very useful, especially when initializing a namespace in the requiring file

prabirshrestha commented 12 years ago

+1

vjpr commented 12 years ago

+1

lentg commented 12 years ago

+1

ajacksified commented 12 years ago

+1

jfrux commented 12 years ago

+1

InfinitiesLoop commented 12 years ago

-6

vjpr commented 12 years ago

Check out Mincer - a direct port of Sprockets.

jfrux commented 12 years ago

Ya mincer is actively developed and works identical to sprockets. I'm porting to CF as well.

tmikoss commented 11 years ago

+1

smalluban commented 11 years ago

+1

ajacksified commented 11 years ago

fwiw, I moved to Mincer and later to Browserify with the base less precompiler. Browserify ended up being a much cleaner solution.

smalluban commented 11 years ago

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.

pthrasher commented 11 years ago

I like this directive. It's a potential candidate for a future release, but not the upcoming 2.0 release.

emilecantin commented 8 years ago

I don't use snockets anymore, so I'll go ahead and close the issue.