ef2c1fb80b83c4f8cf284df0935d1a8da2fac266
[lhc/web/www.git] / www / plugins / yaml / yaml_fonctions.php
1 <?php
2
3 // Sécurité
4 if (!defined('_ECRIRE_INC_VERSION')) {
5 return;
6 }
7
8 // Filtre permettant d'utiliser yaml_decode_file() dans un squelette
9 function decoder_yaml($fichier) {
10 include_spip('inc/yaml');
11 return yaml_decode_file($fichier);
12 }
13
14 function inc_yaml_to_array($u) {
15 include_spip('inc/yaml');
16 return yaml_decode($u);
17 }