Skip to content

YAMLObject documentation#4

Open
mzagozen wants to merge 2 commits into
yaml:masterfrom
mzagozen:yamlobject-documentation
Open

YAMLObject documentation#4
mzagozen wants to merge 2 commits into
yaml:masterfrom
mzagozen:yamlobject-documentation

Conversation

@mzagozen
Copy link
Copy Markdown

@mzagozen mzagozen commented Oct 8, 2019

The documentation on how to use the new yaml.YAMLObject "magic" class is sparse. After figuring out how its attributes and methods map to the old representer/constructor conventions, I decided to write down my findings for others :)

I didn't regenerate HTMLs (yet, in this branch). Which version of pandoc is used? When using 2.7.3, a lot of other unrelated style changes are output.

Using 'representer' and 'constructor' respectivelly fits better with
what the metaclass is doing underneath.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant