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
fmatterandfile_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
fmatterandfile_linesare still available if needed beyond this method. One way of managing this data would be to manually prepend yaml front matter tofile_linesand rerunreadFile()before calling this function again.