Trying to simplify tag/id/attr handling in shape views

ITagBuilderFactory returns a TagBuilder populated html related things taken from the shape
Updated zone/menu/menuitem shapes to use that service
Menu and menu item removed from TheAdmin to allow core\shapes rendering to show through

--HG--
branch : theming
This commit is contained in:
Louis DeJardin
2010-09-10 17:37:21 -07:00
parent 3ea9359c7a
commit 0c67b9fd20
8 changed files with 57 additions and 29 deletions

View File

@@ -1,3 +0,0 @@
<ul id="Menu-@Model.MenuName" class="Menu Menu-@Model.MenuName">
@DisplayChildren(Model)
</ul><!-- /Menu-@Model.MenuName -->

View File

@@ -1,9 +0,0 @@
@{
// odd formatting in this file is to cause more attractive results in the output.
var items = (IEnumerable<dynamic>)Enumerable.Cast<dynamic>(Model);
}
<li><a href="@Model.Href">@Model.Text</a>@{ if (items.Any()) {
<ul>
@DisplayChildren(Model)
</ul>}}
</li>