Skip to content
This repository has been archived by the owner on Sep 28, 2023. It is now read-only.

Convenience method for writing FrontMatter files #123

Open
jbmorley opened this issue Mar 28, 2021 · 0 comments
Open

Convenience method for writing FrontMatter files #123

jbmorley opened this issue Mar 28, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@jbmorley
Copy link
Collaborator

jbmorley commented Mar 28, 2021

It's currently necessary to write a few lines of code to correctly create a FrontMatter file. For example,

with open(path, "w") as fh:
    document = utils.FrontmatterDocument(metadata=metadata)
    fh.write(frontmatter.dumps(document))
    fh.write("\n")

Since this is something we might expect site-specific plugins to do fairly frequently, it would be helpful to create a convenience method for exactly this purpose.

@jbmorley jbmorley added the enhancement New feature or request label Mar 28, 2021
@jbmorley jbmorley changed the title Convenience method for writing Frontmatter files Convenience method for writing FrontMatter files Mar 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant