]> git.nbdom.net Git - nb.git/commitdiff
lib/php/out/vim_hash.php
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 9 Jan 2018 19:58:58 +0000 (19:58 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 9 Jan 2018 19:58:58 +0000 (19:58 +0000)
lib/php/out.php
lib/php/out/vim_hash.php [new file with mode: 0644]

index f5309b13089c6656549477b70e771ea49c184fa9..4c899792d6a64a74c7686ab0c5952f2ef360ef3e 100644 (file)
@@ -190,11 +190,11 @@ Class Out extends Nb {
                        $o['rows'][] = $tmp_row;
                        return true;
 
-    # row() or defined
+    # user function
     } elseif (self::type_call('row',$o,$row)) {
       $ret = true;
 
-    # Assume html/xml tag style
+    # html/xml tag style
     } elseif (isset($o['tag'])) {
       $ret = self::out_tag($o,$row);
 
diff --git a/lib/php/out/vim_hash.php b/lib/php/out/vim_hash.php
new file mode 100644 (file)
index 0000000..6947139
--- /dev/null
@@ -0,0 +1,8 @@
+<?php
+return [ 'align' => self::p('sep',':'), 'eol' => "\n", 'quote' => "'", 
+'row' => function (&$o,&$row) {
+       debug('zaza');
+       return true;
+},
+];
+?>