X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/87f01dac2e1680b90e655c7bb663906b2be5de1c..623c7e17989f53ef049f12639950d2c50c9edd4f:/doc/plugins/contrib/ymlfront/discussion.mdwn?ds=sidebyside diff --git a/doc/plugins/contrib/ymlfront/discussion.mdwn b/doc/plugins/contrib/ymlfront/discussion.mdwn index 0b58982ff..15f2cf8c2 100644 --- a/doc/plugins/contrib/ymlfront/discussion.mdwn +++ b/doc/plugins/contrib/ymlfront/discussion.mdwn @@ -1,3 +1,31 @@ +**Update:** I've submitted a patch, [rubykat/ikiplugins pull request #5](https://github.com/rubykat/ikiplugins/issues/5). + +I have just opened [rubykat/ikiplugins issue #4](https://github.com/rubykat/ikiplugins/issues/4) +regarding the fact that ymlfront doesn't seem to delete any old pagestate when fields have been +removed in an edit. The fields are stuck there with their old values until a full rebuild. Seems +to me ymlfront should just clear out all of the `{ymlfront}` pagestate before parsing the new +stuff - including in the case where the new page has no ymlfront section at all. + +I discovered another slightly-different-but-related issue where simply _changing_ a field value +in the YAML section doesn't always cause the generated HTML to be updated. Oddly, ikiwiki will +_say_ it's building the page, but when you look at the HTML output, it's the old content. + +Could this involve some clever optimization where ikiwiki looks at the content (that's left over +after ymlfront stripped out the YAML) and sees it hasn't changed? Does ymlfront need to do +something more to indicate there is a change? Does the _template_ need to somehow be declared +to depend on more stuff? + +As I said, the log does have a line for 'building' the page, so whatever optimization is happening +must come later than the determination of what pages to 'build'. + +I'm mentioning it here because I'm not sure whether this or the issue on github will be seen +first - there's a pretty old one open there. This seems to be quite +potentially useful stuff that never quite got finished - is [[KathrynAndersen]] still +interested? -- [[jcflack]] + +---- +Previous discussion re: delimiters + Now that I have implemented a \[[!ymlfront ...]] directive, I would like to remove support for the old "---" delimited format, because * it is fragile (easily breakable) @@ -27,3 +55,5 @@ Any objections? >>>> support MMD-style metadata, which means (a) no start marker and (b) empty line >>>> to mark the end of the metadata block. Would this be supported by the plugin? >>>> --GB + +>>>>> Since I allow all legal YAML, the only way to check if it is legal YAML is to use the YAML parser, by which time one is already parsing the YAML, so it seems a bit pointless to check before one does so. -- KA