How can we keep our templates clean and front-end-developer-friendly? How can we make our code testable? How can we reduce our development time, and improve quality at the same time? Some questions I asked myself before starting with the Macaw.Umbraco.Foundation. This presentation takes you on a journey through a foundation we use at Macaw. Where dynamics and separation of concerns are key.
13. Goal reached with mainly 2 practices
Separation of Concerns
• IPropertyValueConverters (previously called IPropertyEditorValueConverter)
• Dynamic“View”models
• Implement IPublishedContent so you can still use all the Umbraco beautiness
• Is using the DynamicPublishedContent eco system
• Act as a proxy for every IPublishedContent (RenderModel.Content)
• Containing commonly used functionality like
• Hompage property for global settings
• Breadcrumbs
• Default ToString() string converters
• etc..