This project use razor syntax for transform text like T4
Project support include external dll for compiler
Install RazorTransformTool extensions
Restart visual studio
Choose a template file(.cshtml) then open Properties Panel and set custom tool to RazorTransformTool
Start project RazorTransformConsole
type command razor template\test.cshtml for transform code
InputDllFolder : Folder contain dll for compiler code
OutputFile: file path for save file using in console application. When using in custom tool It will only set extension in generate code
ListIncludeFile: list of file will be include in top of template file before compiler
IsHeader=1 : auto generate header in result file
/*config
OutPutFile=Out\data.html
InputDllFolder=lib
ListIncludeFile=_include.cshtml,_include2.cshtml
*/
@Partial("Partial.cshtml",model)// render partial with model
@R("Data");// print raw data
@R2();// write @ for generate code cshtml
@WF(2,content,data)// write string format with 2 \t characters in start of line
Project use RazorEngine and Tharga Console