|
|
|
|
|
by cgrand-net
4975 days ago
|
|
Enlive's author here. I prefer to think of templates as a mapping between data and presentation. When the HTML provided by the designers changes drastically you only need to update selectors in your templates and be done with it.
The same is true of the data you pass to templates: when the schema change you have to change the template.
A template is both a contract on some properties of the input HTML provided by the designer and on the input data provided by the logic layer. |
|
How do you usually handle such scenarios?