Discussion forum for the GluePlugin
Doesn't the syntax of this plugin clash with that of
RecursiveRenderPlugin?
--
FranzJosefSilli - 15 Aug 2005
This plugin uses three tildes, the
RecursiveRenderPlugin uses one and two.
--
MichaelDaum - 15 Aug 2005
How does this correspond to the
\ used in TWiki-tables?
--
FranzJosefSilli - 15 Aug 2005
It is nicer and of more general use in other cases.
I use TWiki-tabel's EOL escapes whereever I can
but I'm not happy with them.
--
MichaelDaum - 15 Aug 2005
Actually I'd like to add this to the core rendering engine:
AddGluePluginToCore
--
MichaelDaum - 15 Aug 2005
Thanks Michael for contributing yet another Plugin! How about measuring and documenting the
PluginBenchmarks?
Hmm, does this Plugin really work with
SEARCH as documented? The
commonTagsHandler gets called
after resolving internal variables.
It might be safer across platforms to write the regex as:
$_[0] =~ s/\s*[\n\r]+~~~\s*/ /gos;
--
PeterThoeny - 16 Aug 2005
Yes it works with SEARCH. Added your improved regex v1.1
--
MichaelDaum - 16 Aug 2005
I just realize that SEARCH works in the
second pass, after the Plugin handlers. That is, continuation lines would not work in border cases, such as a SEARCH within a CALC within a SEARCH.
Agreed,
AddGluePluginToCore would be fine.
--
PeterThoeny - 16 Aug 2005
Minor issue. I've just installed this plugin and it doesn't look like the "ApplesAndOranges" demo works quite right.
I end up with "Apples And Oranges". I'm on Linux, (not Cygwin or anything else funky). There was an extra space after the "And", but I deleted that, and I've still got spaces either side of the And in the resolved demo. I'm not sure which bit is wrong (the demo or the code) so I'll let you figure it out.
Update just to clarify. It's the
ApplesAndOranges bit in the Examples section.
--
SteveHobbs - 16 Aug 2005
You are right, the docu is wrong.
--
MichaelDaum - 16 Aug 2005
Note that since Michael raised this,
DakarRelease now allows newlines in the middle of
TWikiVariables, so this plugin shouldn't be needed with Dakar and beyond.
--
CrawfordCurrie - 22 Aug 2005
Crawford, this is only half-true, since parameters, like long formats or regexes, cannot and most possibly will never be spittable on multiple lines by the dakar engine. So the
GluePlugin has still its value.
Unfortunately, as things are right now, the multiline variables in dakar and the
GluePlugin step on each other's toes as
%SEARCH{
~~~
}%
does not work anymore. As long as I've
worked arround the new multiline variables
in the
GluePlugin, you will have to write
%
~~~SEARCH{
~~~
}%
to get things right
--
MichaelDaum - 22 Aug 2005
Alright, I've uploaded a new version 1.5 that changes the glue tilde syntax a little (see docu). This release introduces glue escape chars to prevent twiki tags to be interpreted before the plugin could recombine and format lines as the TWiki engine expects it. In other words, as long as you format your TWikiML as exemplified in the docu your topics will be portable between beijing, cairo and dakar.
--
MichaelDaum - 28 Aug 2005
I proposed in
SmallerSignatures using
MediaWiki's syntax of using three tildes ~~~ or four tildes ~~~~ to insert just the name or name and date respectively on topic save. This would conflict with that if we ever adopt it.
--
SamHasler - 30 Aug 2005
Please consider adding the
use strict; pragma to this plugin. Its use is important to ensuring the quality of TWiki plugins and avoiding unpleasant surprises. See
UseStrict for more.
--
MeredithLesly - 02 Jul 2006
I don't know if this is a bug in Glue or Twisty, but combining Twisty with Glue loses one
</div> in the Twisty HTML output.
Support.TwistyPlusGluePlugin.
--
VickiBrown - 11 Mar 2008
Added my 2cent there.
--
MichaelDaum - 11 Mar 2008