bkardell/CssPlugin — Issue #2: change data models / locations
Author: bkardell
Created: 2011-12-03 15:51:15+00:00
State: open

Currently the breakdown of work and structure of data models is wrong.

The engine really only needs to care about something very much like the structure it currently builds called segindex.
That should be part of the model kicked out by the parser.
The parser's output model should also include an array of hash mangled rules and the engine does inspection on them to build intermediate models. This is wasteful and dumb. The engine should just receive the model (the part without the native rules and use it. The thing managing the compilation can generate a sheet and if there is an adapter for interpreted mode it can insert it in the head or if the sheet is precompiled it can be included with a standard link tag.