simple a/b/c/d/etc... routing for static pages
rocker-box randomly picks an html page to return at the same url on every load. i'm using this for a-b testing whole different pages instead of individual components, but it could easily be used for any page serving randomized content. enjoy!
- Create a folder to fill with static assets (or use "statics", which I provided)
- To serve from flat html files in your
:statics_folder, set the value of:deep_or_flat_structureto'flat'in the init method - To serve from folders with proper
index.htmlfiles, set the value of:deep_or_flat_structureto'deep'in the init method - The app will reset its pool on restart, so take the server down and bring it back up to add more to the pool
This software is provided without any warantee or guarantees of any sort. If you use this library in your works, I only ask that you provide a link to this github repo so others can find it too!