MustacheC# is an implementation of the mustache template engine in C#
NuGet package is coming soon.
Quick Example:
object data = new { subject = "world" };
var template = "Hello, {{subject}}!";
var result = new MustacheRenderer().Render(template, data);
console.WriteLine(result); // => "Hello world!"
See the manual mustache(5) for further information.
Run all tests:
cd tests/Mustache.Test
dotnet test
spec
directory is a copy of https://github.com/mustache/specspec/make-csharp.py
generates csharp test codes.
This project based on following projects.
- https://github.com/mustache/mustache
- https://github.com/mustache/spec
- https://github.com/Olivine-Labs/lustache
This project is licensed under the terms of the MIT license.