I'm going to try generating merge-strategy enabled subtemplate hierarchies based on metadata (xsd). Has anyone else attempted this? Pitfalls? Tips? I've only been using codesmith for 20 days now; so, please stop me if this is absolutely crazy.
So far I'm generating and compiling a single subtemplate. I'll be willing to post code once I clean it up a little more. If I am being unclear, _please_ tell me to expound!
Plans:
Here is syntax for using sub-templates.
<%@ Register Name="SubTemplate" Template="SubTemplate.cst" %>
<script runat="template">
void RunChild(){ SubTemplate sub = this.Create<SubTemplate>(); sub.RenderToFile("file.txt", true);}
</script>