Add render to '/' and '/gist' stack
Don't load default if req.bin is present
Pass next to renderFiles
Use getCustom as 'real' route handler, calling next when it is done
getCustom attaches bin to request object
Update renderFiles to be a 'real' route handler
Attach's a bin to request and calls next when finished
Rename file loading methods
Reformat getDefault method
Add '/' to the allowed characters in bin url regex
Move helpers to app.locals
Add binCode helper, just returns bin url
Using binCode helper in bin handler
return null instead of empty string to keep existing functionality
Only check for subdomain to modify root
Adding prefix param to generateBinId
Adding prefix prop to createBin params if we're on a url-scoped teams
subdomain.
Ideally we don't wont this in jsbin core. Hopefully we can remove this
commit.
Using req.bin.url instead of the posted code, this should give us more flexibility
Fix runner url by moving helpers init below the settings
req.team => req.org
Add custom_js to index