> //{{{
> config.macros.characterCounter = {}
> config.macros.characterCounter.handler =
> function(place,macroName,params,wikifier,paramString,tiddler) {
>    var rowsHeight = params.length > 0 ? params[0] : "6";
>    var colsWidth = params.length > 1 ? params[1] : "50";
>    wikify("<<tiddler CharacterCounterPluginTemplate with: " + "\"" +
> rowsHeight + "\"" + " " + "\"" + colsWidth + "\"" +">>",place);}
> //}}}

You can avoid the extra overhead of the <<tiddler>> macro, by
retrieving the tiddler source yourself, like this:
  function(place,macroName,params,wikifier,paramString,tiddler) {
     var h = params[0]||'6';
     var w = params[1]||'50';
     var tid = 'CharacterCounterPluginTemplate';
     var txt = store.getTiddlerText(tid,'');
     wikify(txt.replace(/\$1/g,h).replace(/\$2/g,w),place);
  }

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to