Hi Mat,
I think, everything, that you describe here can be created with "templated
transclusions" .. No new code needed. ... It's just a new convention you
may need to use.
{{mytranscl||/plain}}
{{mytranscl||/png}}
Works out of the box, if you want to name your templates that way. Just
create a tiddler
title: \plain
text: <$view format=text/>
usage: {{tiddlerTitle||\plain}}
-----
{{mytranscl||.myclass}}
Not possible, since transclusions may not create visible DOM elements.
This form of a transclusion is a macro call with parameters so just do it
with macros.
-----------------
<<mymacro||/plain>>
<<another "foo"||.mystyle>>
Same as above. This is just a new way to list unnamed parameters, which
will cause a lot of troube, because they are not named. So IMO this
approach will not be maintainable very well. It may work for 2 or 3
parameters, but if you have 10 it will blow up.
Use named macro parameters as many as you want:
<<another text:"foo" class="mystyle" tooltip:"something useful, that shows
up if hovered" link-to:"any thing">> ..
Works out of the box. IMO nothing new needed.
If you don't want to type much. Just give the macro definition some
sensibel defaults and you are good with
<<another "foo">>
have fun!
mario
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" 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 https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywikidev/9b0abac7-ee94-4ddf-8a3b-0aa3c252c771%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.