Permalink
Browse files

moved DefaultTextResource out of the viewengine and into demo app for…

… IOC to pick it up
  • Loading branch information...
1 parent ae43846 commit dfe8d28956ab7ac698edb4a0aedfbf9718bba18e @jchannon jchannon committed Dec 20, 2012
@@ -1,5 +1,7 @@
-namespace Nancy.ViewEngines.Razor
+namespace Nancy.Demo.Localisation
{
+
+ using Nancy.ViewEngines.Razor;
using System.Collections;
using System.Collections.Generic;
@@ -60,6 +60,7 @@
<Content Include="Web.config" />
</ItemGroup>
<ItemGroup>
+ <Compile Include="DefaultTextResource.cs" />
<Compile Include="Modules\HomeModule.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
@@ -109,7 +109,6 @@
<Link>Properties\SharedAssemblyInfo.cs</Link>
</Compile>
<Compile Include="CSharp\CSharpRazorViewRenderer.cs" />
- <Compile Include="DefaultTextResource.cs" />
<Compile Include="DefaultRazorConfiguration.cs" />
<Compile Include="HelperResult.cs" />
<Compile Include="HtmlHelpers.cs" />
@@ -13,14 +13,7 @@ public class RazorViewEngineApplicationRegistrations : IApplicationRegistrations
/// </summary>
public IEnumerable<TypeRegistration> TypeRegistrations
{
- get
- {
- return new[]
- {
- new TypeRegistration(typeof(IRazorConfiguration), typeof(DefaultRazorConfiguration)),
- new TypeRegistration(typeof(ITextResource), typeof(DefaultTextResource))
- };
- }
+ get { return new[] { new TypeRegistration(typeof(IRazorConfiguration), typeof(DefaultRazorConfiguration)), }; }
}
/// <summary>

0 comments on commit dfe8d28

Please sign in to comment.