From 15bff5c65eb6ca0991eda6e5bdeeaa3662bef554 Mon Sep 17 00:00:00 2001 From: Roman Kondrat'ev <62770895+RomeCore@users.noreply.github.com> Date: Tue, 21 Apr 2026 13:35:41 +0500 Subject: [PATCH] Change interface for PlaintextTemplate --- src/LLTSharp/LLTSharp.csproj | 2 +- src/LLTSharp/PlaintextTemplate.cs | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) 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