Open cxw42 opened 4 years ago
I say I'm starting to see why folks hate YAML 🙁. IIRC tinita has been working on making YAML::PP better, so Statocles should probably use that. But I also thought she was making YAML.pm a frontend to the (compatible) backend libraries (that work may be still underway).
I think for now swapping to YAML::PP is probably the best option. Statocles v0 is in maintenance mode until the v2 branch is ready (which uses Yancy::Backend::Static to parse the documents, which may also have this same problem), so drastic changes here aren't that valuable.
Thanks for the report!
(At most tangentially related to https://github.com/preaction/Statocles/issues/541#issuecomment-329364711)
System:
Input file:
Expected: parses OK
Observed:
It looks like this is because Statocles::Document uses YAML, not YAML::PP or YAML::XS. For example:
I looked in the test suite and didn't see a test of parsing this attribute.
t/page/document.t
tests the behaviour of the attribute, but not the parsing of the attribute from frontmatter into aStatocles::Document
.What say you?
Thanks!
-CXW