The interesting thing about his criteria is that although Perrin's paper sees Template and HTML::Mason in different categories, Terence's criteria sees them as equally entangled!
| Criteria | HTML::Template | Template | HTML::Mason |
|---|---|---|---|
| the view cannot modify the model either by directly altering model data objects or by invoking methods on the model that cause side-effects. | 1 | 0 | 0 |
| the view cannot perform computations upon dependent data values For example, the view cannot compute book sale prices as “$price*.90”. | 1 | 0 | 0 |
| the view cannot compare dependent data values, but can test the properties of data such as presence/absence. Tests like $bloodPressure<120 must be moved to the model and replaced with a test for presence such as $bloodPressureOk!=null | 1 | 0 | 0 |
| the view cannot make data type assumptions. how the hell is that possible?! | 0 | 0 | 0 |
| data from the model must not contain display or layout information. | 0 | 0 | 0 |
| TOTALS | 3 | 0 | 0 |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Entanglement Index of Various Templating Systems
by perrin (Chancellor) on Aug 03, 2009 at 17:20 UTC | |
by metaperl (Curate) on Aug 03, 2009 at 18:10 UTC |