Skip to content

Commit

Permalink
update code generation using T4 template
Browse files Browse the repository at this point in the history
Signed-off-by: sword <caoxiangkun@gmail.com>
  • Loading branch information
caoxk committed Mar 13, 2014
1 parent 1792d83 commit c045c00
Show file tree
Hide file tree
Showing 14 changed files with 3,105 additions and 57 deletions.

Large diffs are not rendered by default.

@@ -0,0 +1,20 @@
<#@ template debug="false" language="C#" #>
<#@ output extension=".txt" #>
<#@ parameter type="System.String" name="ModuleName" #>
<#@ parameter type="System.String" name="ControllerName" #>
using System.Web.Mvc;
using Coevery.Localization;
using Coevery;

namespace <#=ModuleName#>.Controllers {
public class <#=ControllerName#> : Controller {
public ICoeveryServices Services { get; set; }

public <#=ControllerName#>(ICoeveryServices services) {
Services = services;
T = NullLocalizer.Instance;
}

public Localizer T { get; set; }
}
}

0 comments on commit c045c00

Please sign in to comment.