Hi all,
recently I was looking for a way to use tiddler templates in order to
create new tiddlers with predefined text. That can be easily achieved with
TW's <<newTiddler>> macro and the following text parameter[1]: *
{{store.getTiddlerText("AnnotherTiddler")}}*
With that parameter you get a static text from "Another Tiddler" which is
inserted into the text field. But there are some use cases where you need a
more dynamic text template. You could use transclusions with placeholders
instead, but those transclusions are not editable on a per-tiddler base and
this approach is unusable for tiddler templates which provides you text for
a whole tiddler (am I wrong?). I couldn't find plugins which fills this gap
so I decided to write a 'new' macro based on <<newTiddler>> macro.
My NewTemplateTiddlerMacro[2] is in a very early alpha stage and currently
poorly documented. I'm a JavaScript noob, so I hope that more skilled
people here could give me some hints to write a cleaner and maybe more
elegant code in future.
Hope to see comments from you!
Regards,
Albert
[1] cf. http://tiddlywiki.org/#newTiddler
[2] https://www.dropbox.com/s/6sy7bi6gf3xquy0/NewTemplateTiddlerMacro.html
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.