4
0
mirror of https://github.com/art-ist/mustache-sharp.git synced 2024-06-16 21:05:32 +00:00
MustacheSharp/mustache-sharp/StaticGenerator.cs
Travis Parks f8628aaf86 Implement custom tags.
This is the first step towards supporting custom tags. There are
wrinkles I need to work out, since I'm not 100% sure what the finished
code will look like.
2013-01-08 21:33:53 -05:00

20 lines
358 B
C#

using System;
namespace mustache
{
internal sealed class StaticGenerator : IGenerator
{
private readonly string _value;
public StaticGenerator(string value)
{
_value = value;
}
string IGenerator.GetText(object source)
{
return _value;
}
}
}