Adding a property and a couple methods to the base view class(es)

- Layout (shortcut for WorkContext.Layout)
- HasText(object thing) (shortcut for !string.IsNullOrWhiteSpace(thing as string))
- Tag(dynamic shape, string tagName) (shortcut for Html.Resolve<ITagBuilderFactory>().Create(shape, tagName))

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-10-07 22:29:11 -07:00
parent 45933ca700
commit 11d83885ce
7 changed files with 43 additions and 7 deletions

View File

@@ -146,7 +146,7 @@
<Content Include="Web.config">
<SubType>Designer</SubType>
</Content>
<None Include="Themes\TheThemeMachine\Views\MenuItem.cshtml_" />
<None Include="Themes\TheThemeMachine\Views\MenuItem.cshtml" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Orchard\Orchard.Framework.csproj">
@@ -318,7 +318,7 @@
<Content Include="Themes\Web.config" />
<Content Include="Themes\TheThemeMachine\Views\Items\Content.Blog.cshtml" />
<None Include="Themes\TheThemeMachine\Views\Layout.cshtml" />
<None Include="Themes\TheThemeMachine\Views\Menu.cshtml_">
<None Include="Themes\TheThemeMachine\Views\Menu.cshtml">
<SubType>Designer</SubType>
</None>
</ItemGroup>