IFrontMatterParser
- Namespace: SuCoS.Parsers
- Source File: IMetadataParser.cs
Responsible for parsing the content front matter
Public Methods
SplitFrontMatterAndContent
(string frontMatter, string rawContent) SplitFrontMatterAndContent(string fileContent)
Extract the front matter from the content.
Parameters:
fileContent(string)
Returns: (string frontMatter, string rawContent)
Parse
T Parse(string content)
Parse a string content to the T class.
Parameters:
content(string)
Returns: T
SerializeAndSave
void SerializeAndSave(T data, string fileFullPath)
Deserialize an object into a file.
Parameters:
data(T)fileFullPath(string)