IMarkdownContentService

interface

Namespace: MyLittleContentEngine.Services.Content

Declaration

public interface IMarkdownContentService

Implements

  • MyLittleContentEngine.Services.Content.IContentService

Methods

GetAllContentPagesAsync

method
public abstract Task<ImmutableList<MarkdownContentPage<TFrontMatter>>> GetAllContentPagesAsync()
Gets an immutable list of all content.
Returns: Task<ImmutableList<MarkdownContentPage<TFrontMatter>>>

GetRenderedContentPageByUrlOrDefault

method
public abstract Task<(MarkdownContentPage<TFrontMatter> Page, string HtmlContent)?> GetRenderedContentPageByUrlOrDefault(string url)
Gets content by its URL and renders the Markdown to HTML. Returns null if not found.
Returns: Task<(MarkdownContentPage<TFrontMatter> Page, string HtmlContent)?>
url stringThe URL identifier of the content page to retrieve