yaml2outline - Convert a YAML outline into a standard one
yaml2outline outline.yaml > outline.txt
This program converts a YAML file that conforms to a particular outline format, into a standard looking outline. It is really just a proof of concept, and not intended for any serious purpose.
Example:
--- - Intro - Part 1: - Life - Love: - True Love: - Mexican Cuisine - Perl - Love at First Sight - Pursuit of YAML - Part 2: - Scissors: - Sewing - Hair - Paper - Rock: - Granite - Pixies - Part3: - Perl - Python - Ruby - Conclusion
yields:
I) Intro
II) Part 1 A) Life B) Love 1) True Love i) Mexican Cuisine ii) Perl 2) Love at First Sight C) Pursuit of YAML
III) Part 2 A) Scissors 1) Sewing 2) Hair B) Paper C) Rock 1) Granite 2) Pixies
IV) Part3 A) Perl B) Python C) Ruby
V) Conclusion
Brian Ingerson <ingy@cpan.org>
Copyright 2002, Brian Ingerson - All rights reserved
You may use this hack under the same terms as Perl itself.