Giter Site home page Giter Site logo

razortransformtool's Introduction

RazorTransformTool

This project use razor syntax for transform text like T4

Project support include external dll for compiler

Sample

Code Folder

SourceCode generate

Using CustomTool for visual studio

Install RazorTransformTool extensions

Install

Restart visual studio

Choose a template file(.cshtml) then open Properties Panel and set custom tool to RazorTransformTool

Setting CustomTool

Using Console Application

Start project RazorTransformConsole

type command razor template\test.cshtml for transform code

HeaderConfig

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

Example header

/*config

 OutPutFile=Out\data.html
 InputDllFolder=lib
 ListIncludeFile=_include.cshtml,_include2.cshtml

*/


Some Helper Function in razor Syntax


@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

razortransformtool's People

Contributors

windwp avatar

Watchers

Krzysztof avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.