hugo/parser
Cameron Moore f039e3be9e parser: Refactor frontmatter parser and add tests
Lots of cleanups here:

- Refactor InterfaceToConfig and InterfaceToFrontMatter to use io.Writer.
- Simplify InterfaceToFrontMatter by wrapping InterfaceToConfig.
- Export FrontmatterType since we return it in DetectFrontMatter.
- Refactor removeTOMLIdentifier to avoid blindly replacing "+++".
- Update HandleJSONMetaData to return an empty map on nil input.
- Updates vendored goorgeous package and test for org-mode frontmatter.
- Add tests and godoc comments.

Coverage for parser package increased from 45.2% to 85.2%.
2017-03-11 17:52:25 +01:00
..
frontmatter.go parser: Refactor frontmatter parser and add tests 2017-03-11 17:52:25 +01:00
frontmatter_test.go parser: Refactor frontmatter parser and add tests 2017-03-11 17:52:25 +01:00
long_text_test.md Merge remote-tracking branch 'origin/parser' into mrg_praser 2013-09-17 15:52:40 -07:00
page.go parser: Refactor frontmatter parser and add tests 2017-03-11 17:52:25 +01:00
page_test.go parser: Refactor frontmatter parser and add tests 2017-03-11 17:52:25 +01:00
parse_frontmatter_test.go parser: Make the constant vars ... constants 2016-03-23 15:05:32 +01:00