{"id":13629171,"url":"https://github.com/otac0n/Weave","last_synced_at":"2025-04-17T04:33:09.416Z","repository":{"id":7224623,"uuid":"8532353","full_name":"otac0n/Weave","owner":"otac0n","description":"Weave is a text templating engine for .NET that is all about attention to detail. Weave handles the tricky work of making your rendered text beautiful.","archived":false,"fork":false,"pushed_at":"2023-12-05T04:07:17.000Z","size":1102,"stargazers_count":26,"open_issues_count":5,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-07T17:52:57.993Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/otac0n.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","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":"2013-03-03T05:44:50.000Z","updated_at":"2025-03-19T14:16:40.000Z","dependencies_parsed_at":"2024-08-01T22:51:58.752Z","dependency_job_id":null,"html_url":"https://github.com/otac0n/Weave","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otac0n%2FWeave","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otac0n%2FWeave/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otac0n%2FWeave/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otac0n%2FWeave/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/otac0n","download_url":"https://codeload.github.com/otac0n/Weave/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249316056,"owners_count":21249885,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-08-01T22:01:03.711Z","updated_at":"2025-04-17T04:33:08.932Z","avatar_url":"https://github.com/otac0n.png","language":"C#","funding_links":[],"categories":["Content","Source Generators"],"sub_categories":["105. [Weave](https://ignatandrei.github.io/RSCG_Examples/v2/docs/Weave) , in the [FilesToCode](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#filestocode) category","Text templating"],"readme":"Weave \u003cimg src=\"Weave.svg\" width=\"42\" height=\"42\" /\u003e\n=====\n\nWeave is a text templating engine for .NET that is all about attention to detail.  Weave handles the tricky work of making your rendered text beautiful.\n\n[![MIT Licensed](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](license.md)\n[![Get it on NuGet](https://img.shields.io/nuget/v/Weave.svg?style=flat-square)](http://nuget.org/packages/Weave)\n\n[![Appveyor Build](https://img.shields.io/appveyor/ci/otac0n/Weave.svg?style=flat-square)](https://ci.appveyor.com/project/otac0n/weave)\n[![Test Coverage](https://img.shields.io/codecov/c/github/otac0n/Weave.svg?style=flat-square)](https://codecov.io/gh/otac0n/Weave)\n[![Pre-release packages available](https://img.shields.io/nuget/vpre/Weave.svg?style=flat-square)](http://nuget.org/packages/Weave)\n\nGetting Started\n---------------\n\nThe easiest way to get a copy of Weave is to install the [Weave NuGet package](http://nuget.org/packages/Weave) in Visual Studio.\n\n    PM\u003e Install-Package Weave\n\nDue to a limitation in Visual Studio, you will need to reload your project for the 'WeaveTemplate' build action to be recognized.\n\nOnce you have the package installed, files in your project marked as 'WeaveTemplate' in the properties window will be compiled to their respective `.weave.cs` template classes before every build.  These template classes will be automatically included in compilation.\n\nFor help with template syntax, see [the Syntax Guide wiki entry](https://github.com/otac0n/Weave/wiki/Syntax-Guide)\n\nExample\n-------\n\n    @namespace MyProject\n    @methodname RenderFizzBuzz\n    @model IEnumerable\u003cint\u003e\n\n    {{each i in model}}\n        {{if i % 3 == 0 \u0026\u0026 i % 5 == 0}}\n            {{= i }} FizzBuzz\n        {{elif i % 3 == 0}}\n            {{= i }} Fizz\n        {{elif i % 5 == 0}}\n            {{= i }} Buzz\n        {{else}}\n            {{= i }}\n        {{/if}}\n    {{/each}}\n\nThis would generate a static (by default) method named `RenderFizzBuzz` in the `Templates` class (again, by default).  You would use this method like so:\n\n    Templates.RenderFizzBuzz(Enumerable.Range(0, 100), Console.Out);\n\nAny `TextWriter` is supported.  To get the text as a string, use a `StringWriter`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotac0n%2FWeave","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fotac0n%2FWeave","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotac0n%2FWeave/lists"}