rgrove / combohandler

A simple Yahoo!-style combo handler in Node.js.
MIT License
116 stars 32 forks source link

custom combo url template (a la stockpile) #25

Open caridy opened 11 years ago

caridy commented 11 years ago

YUI-Stockpile supports a custom template to build the combo url thru the loader that does not rely on the querystring (few reasons behind that [1]). E.g:

comboBase: "/combo~",
comboSep:  "~"

I see few options here:

[1] http://www.yuiblog.com/blog/2012/11/06/managing-your-javascript-modules-with-yui-3-stockpile-2/

evocateur commented 11 years ago

This smells like middleware, to me. The second option (basic config) sounds cleaner to me, though I'm not sure comboBase ports directly from YUI config to combohandler's Express route convention.