mirror of
https://github.com/art-ist/mustache-sharp.git
synced 2024-06-16 21:05:32 +00:00

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.
20 lines
358 B
C#
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;
|
|
}
|
|
}
|
|
}
|