wpsharks / wp-kb-articles

KB Articles for WordPress; adds a new Custom Post Type.
http://wpkbarticles.com/
2 stars 1 forks source link

YAML; Support Official Specs #49

Closed jaswrks closed 9 years ago

jaswrks commented 9 years ago

I'm beginning to think that perhaps we should consider integrating a more official YAML parser at some point. I can see this becoming more difficult than it should be to deal with, since currently there is no official spec being followed; i.e. we use a dumbed down parser of our own to parse the YAML. Things would be easier to deal with if we had a more complete parser that was known to support the full spec.

Referencing: http://www.sitepoint.com/using-yaml-in-php-projects/ Referencing: http://yaml.org/spec/1.2/spec.html Referencing: http://symfony.com/doc/current/components/yaml/index.html

@brucewsinc You're really good at experimenting with things like this. If you get a chance to play with the Symfony components for YAML parsing, and you can find a way for us to pull this out and use it independently from the full framework; it would be a huge step in the right direction.

Of the ones I've seen so far, it appears that Symfony's got the most up-to-date YAML parser available for PHP.

jaswrks commented 9 years ago

@brucewsinc Were you taking a look at this?

jaswrks commented 9 years ago

This has been implemented. I used the YAML component from Symfony; adding it as a submodule.