The current
MetaDataRendering is inconsistent which causes several problems, as discussed in
RenderMetaInOtherTemplates,
InconsistentApiCallsInRendering,
TopicChildren,
MetadataSucks,
SimplifyInternalMetaDataHandling,
TWikiFormsDiffRendering. The official doc is in
TWiki.TWikiMetaData.
Current spec:
-
%META{}% variables are rendered only in the template of the view script.
-
%ANYOTHER{}% variables are rendered in topic text and templates/skins
Proposed new spec:
- Make this consistent, e.g. render all variable (meta and others) at all times (view, rdiff, oops etc).
At first, the implementation looks like straight forward:
- Add TWiki::handleMetaTags to TWiki::handleCommonTags
- Remove the extra call to TWiki::handleMetaTags in the view script.
There is one complication: TWiki::handleMetaTags expects the meta object, which is not known to TWiki::handleCommonTags. Further, the meta data has already been stripped from the text data when TWiki::handleCommonTags is called.
This enhancement should go hand in hand with
SimplifyInternalMetaDataHandling.
--
PeterThoeny - 07 Sep 2003