2023-08-13 17:33:54 +01:00
|
|
|
using OliverBooth.Markdown.Template;
|
2023-08-13 13:27:44 +01:00
|
|
|
|
2023-08-13 17:33:54 +01:00
|
|
|
namespace OliverBooth.Services;
|
2023-08-13 13:27:44 +01:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a service that renders MediaWiki-style templates.
|
|
|
|
/// </summary>
|
|
|
|
public interface ITemplateService
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Renders the specified template with the specified arguments.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="templateInline">The template to render.</param>
|
|
|
|
/// <returns>The rendered template.</returns>
|
|
|
|
/// <exception cref="ArgumentNullException">
|
|
|
|
/// <paramref name="templateInline" /> is <see langword="null" />.
|
|
|
|
/// </exception>
|
|
|
|
string RenderTemplate(TemplateInline templateInline);
|
|
|
|
}
|