diff --git a/src/LLTSharp/LLTSharp.csproj b/src/LLTSharp/LLTSharp.csproj index 8383b61..2bee7a1 100644 --- a/src/LLTSharp/LLTSharp.csproj +++ b/src/LLTSharp/LLTSharp.csproj @@ -8,7 +8,7 @@ LLTSharp - 1.2.1 + 1.2.2 Roman K. RomeCore LLTSharp diff --git a/src/LLTSharp/PlaintextTemplate.cs b/src/LLTSharp/PlaintextTemplate.cs index c0a62e1..163b9ab 100644 --- a/src/LLTSharp/PlaintextTemplate.cs +++ b/src/LLTSharp/PlaintextTemplate.cs @@ -5,7 +5,7 @@ namespace LLTSharp { - public class PlaintextTemplate : ITemplate + public class PlaintextTemplate : ITextTemplate { /// /// The content of the template. @@ -49,9 +49,14 @@ public PlaintextTemplate(string content, IMetadataCollection metadata) Metadata = new MetadataCollection(metadata) ?? throw new ArgumentNullException(nameof(metadata)); } - public object Render(object? context = null) + public string Render(object? context = null) { return Content; } + + object ITemplate.Render(object? context) + { + return Render(context); + } } } \ No newline at end of file