Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/LLTSharp/LLTSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<PropertyGroup>
<PackageId>LLTSharp</PackageId>
<Version>1.2.1</Version>
<Version>1.2.2</Version>
<Authors>Roman K.</Authors>
<Company>RomeCore</Company>
<Product>LLTSharp</Product>
Expand Down
9 changes: 7 additions & 2 deletions src/LLTSharp/PlaintextTemplate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace LLTSharp
{
public class PlaintextTemplate : ITemplate
public class PlaintextTemplate : ITextTemplate
{
/// <summary>
/// The content of the template.
Expand Down Expand Up @@ -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);
}
}
}
Loading