run

EditFrontMatter.run(extraVars_dict={}, *args, **kwargs) → None[source]

Process the front matter changes and delete previously specified yaml keys.

Variables to change yaml data are passed as a dictionary argument as extraVars_dict.

Parameters

extraVars_dict (dict) – key,value pairs to be set or added in the fmatter object.

Example

Call EditFrontMatter.run() with variables to change in fmatter:

proc = EditFrontMatter()
...
proc.run({'hasMath': True, 'addedVariable': ['one', 'two', 'three']})
...