{"id":16586103,"url":"https://github.com/windwp/razortransformtool","last_synced_at":"2026-04-20T01:35:28.958Z","repository":{"id":80980403,"uuid":"46206059","full_name":"windwp/RazorTransformTool","owner":"windwp","description":"Init Project","archived":false,"fork":false,"pushed_at":"2016-06-19T23:53:53.000Z","size":2215,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-13T09:52:39.655Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/windwp.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-11-15T05:40:55.000Z","updated_at":"2016-05-05T02:20:06.000Z","dependencies_parsed_at":"2023-04-05T14:20:23.215Z","dependency_job_id":null,"html_url":"https://github.com/windwp/RazorTransformTool","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/windwp/RazorTransformTool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windwp%2FRazorTransformTool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windwp%2FRazorTransformTool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windwp%2FRazorTransformTool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windwp%2FRazorTransformTool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/windwp","download_url":"https://codeload.github.com/windwp/RazorTransformTool/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windwp%2FRazorTransformTool/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32029853,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"ssl_error","status_checked_at":"2026-04-20T00:17:31.068Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T22:50:35.668Z","updated_at":"2026-04-20T01:35:28.913Z","avatar_url":"https://github.com/windwp.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"RazorTransformTool\n------\n\nThis project use razor syntax for transform text like T4\n\nProject support include external dll for compiler\n\nSample\n------\n\n![Code Folder](http://i.imgur.com/3hDEHsX.jpg)\n\n![SourceCode generate](http://i.imgur.com/aQD1qoT.gif)\n\nUsing CustomTool for visual studio\n-------\n\nInstall RazorTransformTool extensions\n\n[Install](https://visualstudiogallery.msdn.microsoft.com/68d81c9e-3e07-47bd-a0ec-27ab4a80ef02)\n\nRestart visual studio \n\nChoose a template file(.cshtml) then open Properties Panel and set custom tool to RazorTransformTool\n\n![Setting CustomTool](http://i.imgur.com/MoGYq3e.png)\n\n\nUsing Console Application\n-------\n\nStart project RazorTransformConsole\n\ntype command razor template\\test.cshtml for transform code\n\n\nHeaderConfig\n------\nInputDllFolder : Folder contain dll for compiler code\n\nOutputFile:  file path for save file using in console application. When using in custom tool It will only set extension in generate code\n\nListIncludeFile: list of file will be include in top of template file before compiler\n\nIsHeader=1 : auto generate header in result file\n\n\nExample header\n---\n\n/*config\n\n     OutPutFile=Out\\data.html\n     InputDllFolder=lib\n     ListIncludeFile=_include.cshtml,_include2.cshtml\n\n*/\n\n---\n\n\nSome Helper Function in razor Syntax\n------\n\n---\n\n    @Partial(\"Partial.cshtml\",model)// render partial with model\n    @R(\"Data\");// print raw data\n    @R2();// write @ for generate code cshtml\n    @WF(2,content,data)// write string format with 2 \\t characters in start of line\n\n---\n\n\n\n---\nProject use [RazorEngine](https://github.com/Antaris/RazorEngine) and [Tharga Console](https://github.com/poxet/tharga-console)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindwp%2Frazortransformtool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwindwp%2Frazortransformtool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindwp%2Frazortransformtool/lists"}