An easy to use class for handling YAML frontmatter in PHP.
YAML Front Matter is a technique used to keep metadata about the file seperated from the actual content inside the file, while still only having 1 file. This simple PHP class allows you to read such files, and return each of the metadata or content independantly.
This class is currently a stict format. The current format is following the original Jekyll project example. As far as we know the current file format is only compatible with Statamic.
The current strict format is as follows:
---
foo: bar
title: Test
expl: Make sure there is only 1 space between each of the variables
info: you can have as many custom fields as you like
---
<h1>Text Here</h1>
<p>content</p>
There is no conversion from Markdown so you will have to implement your own, or if you want you can simply use HTML and even PHP directly.
example/example.php is an example file that shows you how to use this class.