create new tag
, view all tags

GluePluginDev Discussion: Page for developer collaboration, enhancement requests, patches and improved versions on GluePlugin contributed by the TWikiCommunity.
• Please let us know what you think of this extension.
• For support, check the existing questions, or ask a new support question in the Support web!
• Please report bugs below

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


does not work anymore. As long as I've worked arround the new multiline variables in the GluePlugin, you will have to write


to get things right frown

-- 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

Edit | Attach | Watch | Print version | History: r17 < r16 < r15 < r14 < r13 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r17 - 2008-03-11 - MichaelDaum
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.