]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/todo/allow_site-wide_meta_definitions.mdwn
progress
[ikiwiki.git] / doc / todo / allow_site-wide_meta_definitions.mdwn
index 70ccc2b682d207bea9c316236ca9a6aef48244e4..f935a9acbf2cd3568fa0669980ec6a3ef9480148 100644 (file)
@@ -72,3 +72,24 @@ my github ikiwiki fork):
 > by the fact that some (but not all!) meta headers are idempotent.
 > 
 > --[[smcv]]
+
+>> Thanks for your comment. Tonight I had a go at implementing the syntax
+>> you propose here. I decided the simplest thing to do might be for the scan
+>> subroutine to convert any hashes found in the meta_defaults list into calls
+>> to the preprocess routine. I've got a bit stuck trying to convert a hash to
+>> a named parameter list (or just a subroutine parameter list that is). I may
+>> try to look again in the morning (brain a bit sleepy)
+>>
+>> ...and on writing this comment I see your second suggestion was essentially
+>> to do exactly that :) -- [[Jon]]
+
+>>> ok, it's easier than I thought, I just pass the hash and it's handled
+>>> correctly. Right now can't figure out why my hashes get converted into
+>>> strings prior to me seeing them in scan():
+
+    $VAR64 = [
+      'HASH(0xc2daf8)',
+      'HASH(0xc2db40)'
+    ];
+
+>>> ...but it *really* is bedtime :) -- [[Jon]]