How to use YAML front and back matter in Ruby?
I have heard of the term "front matter" and "back matter" to refer to some
YAML parsing at the beginning or end of a non-YAML file. However, I can't
seem to find any examples/documentation of how to implement this. Maybe
this isn't a standard YAML feature. How can I make use of this feature in
my Ruby project?
FYI: The reason I want to do this is to be able to require some ruby files
at the top, and assume the rest is YAML. I don't think this is normally
allowed in a YAML file.
No comments:
Post a Comment