dumpFileData

EditFrontMatter.dumpFileData(*args, **kwargs) → str[source]

Concatenate frontmatter with original content and return as a string.

Returns

  • A string formed by the concatination of fmatter and file_lines (if file souce content is not empty* and yaml was present).

  • An empty string if file source content is empty or original yaml was not present.

Hint

fmatter and file_lines are still available if needed beyond this method. One way of managing this data would be to manually prepend yaml front matter to file_lines and rerun readFile() before calling this function again.