fakedarren / mootools-website

Initial work on a new site for MooTools.
24 stars 6 forks source link

Extend 'Control' to reroute version-specific requests to a particular version folder #17

Closed fakedarren closed 13 years ago

fakedarren commented 13 years ago

Not worth trying now because we have loads of tasks to complete before then, but basically Control (the router) should be able to detect, say, a URL of:

/download/1.2

and reroute to

/download (internally)

and rebase all the working includes to use a specific version. I had a look and basically we can subclass Control pretty easily to achieve this (just setting a working 'version' folder) but we shall see once earlier milestones are completed.

This is most important to the builder (hence in this milestone) but also helps with docs, demos et al.