Kontent Day 29: Refactoring

brentdax on 2005-08-01T08:33:21

r17 | brent | 2005-08-01 01:22:00 -0700 (Mon, 01 Aug 2005) | 11 lines

Two large refactorings: * Extracted path-handling code from Request into separate Path/Component objects. Paths can now be used to resolve pages without allocating a renderer and so on. * Changed Page, Revision, and Draft into: Page Revision / \ / \ SavedPage DraftPage SavedRevision DraftRevision * DraftRevisions now have classes.

This is all preperatory to page creation code.


I also wrote a preliminary version of make_root, which is used to create the tables and initial data structures in a Kontent store.

In other news, I've heard on #perl6 that a new Pugs release will land in about 34 hours. I think I'll release Kontent 0.01 (the alpha preview) not long after, and recommend that people use that release of Pugs; that way I won't have to say "run svn co and hope you get a good version". That gives me a day to get page creation running. Should be doable…