#
gedw99
I just noticed this in the new code in the trunk:
Cuyahoga.Core.Decorators. AbstractDaoDecorator : IContentItemDao: IContentItem
I was wondering if the the decorator pattern will be used for templates and Sections output, and not just the lower DAO stuff.
This would allow asp.net and html to be decorated in the same way as css decorates html.
The reason i suggest this as when using Cuyahoga you often have to implement a new Module just because the output from user control of the module if different. What I really want is to be ale to just decorate the out out in a loose fashion.
This in effect becomes very similar to what Portlets do, but without all the mind numbing and breakable config issues.
You would use the exact injection points that Cuyahoga uses; Templates and Sections. At the template level you could apply a decorator to all modules of type X. At ther section level you could apply a specific decorator.
You could then have Decorator service, that can retrieve them from the file system and a Decorator worker that would apply them. This would allow you to write decorations in c# using StringTemplate or use a base XSLTDecorator and call a file n the file system to do it.
Ultimately it would allow the semantic structure from Modules output to be modified on a case by case basis an achieve what css templating cant do.
ged
Cuyahoga.Core.Decorators. AbstractDaoDecorator : IContentItemDao: IContentItem
I was wondering if the the decorator pattern will be used for templates and Sections output, and not just the lower DAO stuff.
This would allow asp.net and html to be decorated in the same way as css decorates html.
The reason i suggest this as when using Cuyahoga you often have to implement a new Module just because the output from user control of the module if different. What I really want is to be ale to just decorate the out out in a loose fashion.
This in effect becomes very similar to what Portlets do, but without all the mind numbing and breakable config issues.
You would use the exact injection points that Cuyahoga uses; Templates and Sections. At the template level you could apply a decorator to all modules of type X. At ther section level you could apply a specific decorator.
You could then have Decorator service, that can retrieve them from the file system and a Decorator worker that would apply them. This would allow you to write decorations in c# using StringTemplate or use a base XSLTDecorator and call a file n the file system to do it.
Ultimately it would allow the semantic structure from Modules output to be modified on a case by case basis an achieve what css templating cant do.
ged