Warning: include(../../header.php.en.en): Failed to open stream: No such file or directory in /var/www/html/man/man3/Locale::Po4a::YamlFrontMatter.3pm.php.en on line 4

Warning: include(): Failed opening '../../header.php.en.en' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/man/man3/Locale::Po4a::YamlFrontMatter.3pm.php.en on line 4

LOCALE::PO4A::YAMLFRONTMATTER.3PM

Section: User Contributed Perl Documentation (1)
Updated: 2026-03-29
Index Return to Main Contents
 

NAME

Locale::Po4a::YamlFrontMatter - parse YAML front matter  

DESCRIPTION

The po4a (PO for anything) project goal is to ease translations (and more interestingly, the maintenance of translations) using gettext tools on areas where they were not expected like documentation.

Locale::Po4a::YamlFrontMatter is a module to parse YAML front matter, especially in Markdown documents. This is intended to be used by other format modules such as "Text" module.  

FUNCTIONS

 

parse_yaml_front_matter

Parse YAML Front Matter (especially in Markdown documents).

If the text starts with a YAML "---\n" separator, the full text until the next YAML "---\n" separator is considered YAML metadata. The "...\n" "end of document" separator can be used at the end of the YAML block.

It takes three arguments $ref, and $options. $options is a hash reference which has keys "keys", "skip_array", "paths", and "lenient".

Returns truthy value if it is a valid YAML, otherwise returns falthy value.  

AUTHORS

 Nicolas François <nicolas.francois@centraliens.net>

 

COPYRIGHT AND LICENSE

 Copyright © 2005-2008 Nicolas FRANÇOIS <nicolas.francois@centraliens.net>.

 Copyright © 2008-2009, 2018 Jonas Smedegaard <dr@jones.dk>.
 Copyright © 2020 Martin Quinson <mquinson#debian.org>.

This program is free software; you may redistribute it and/or modify it under the terms of GPL v2.0 or later (see the COPYING file).


 

Index

NAME
DESCRIPTION
FUNCTIONS
parse_yaml_front_matter
AUTHORS
COPYRIGHT AND LICENSE

This document was created by using the manual pages.
Time: 22:11:58 GMT, March 29, 2026

Warning: include(footer_Locale::Po4a::YamlFrontMatter.3pm.php): Failed to open stream: No such file or directory in /var/www/html/man/man3/Locale::Po4a::YamlFrontMatter.3pm.php.en on line 110

Warning: include(): Failed opening 'footer_Locale::Po4a::YamlFrontMatter.3pm.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/man/man3/Locale::Po4a::YamlFrontMatter.3pm.php.en on line 110