Go-style templating library for c#
$ dotnet add package GosharpTemplateThis is a lightweight, fast, easy to use, dependency free, Go-style templating library. It is NOT a goal to implement all the features in available in Go Templates. I do NOT think views/templates should be full of logic. Keep It Simple.


.Title. or .Address.StreetTemplates are not html injection safe. It is assumed that the template author and the data is trusted. If you are using this for where users can input data, you can sanitize the data using something like: System.Web.HttpUtility.HtmlEncode / .HtmlAttributeEncode / .UrlEncode.
This is a hobby/learning project, and i have limited time to work on this. If you are missing any features, or want to contribute please let me know by making a PR or an issue.