> The wikitext in TiddlyWiki is already its own templating language. I'm
> talking about PageTemplate, ViewTemplate etc. In classic TW these
> templates are written in HTML, but in TW5 they are written in
> wikitext. The difference will be subtler when I add support for HTML
> tags within wikitext. Even today, evaluated parameters give users a
> tiny bit of the expressive power of templating engines like mustache
> (and especially with things like the ForEachTiddlerPlugin).
>
> The HTML template in the recipe file will thus become an ordinary
> tiddler that when wikified renders the full HTML page.

So, if I understand you correctly, the existing template file will
become obsolete and so its syntax is moot. That's a good result.

> So, given that perspective, my approach to mustache, Jinga2 etc. is to
> use them as inspiration for extending the templating-like capabilities
> of wikitext.

I had presumed the templating mechanism for wikitext would be via the
use of macros. The above makes me think you have something else in
mind as well. Care to elaborate?

> my primary goal is to do that by having a very small
> set of features that work together in a uniform manner at many
> different scales.

Yep, I certainly agree with that goal.

> I also note that people who want to write Jinga2 or mustache templates
> are already pretty well catered for

This misses the point. The purpose of using Jinga2 is not to support
people who want to write Jinga2 templates. It's, as Chris puts it, to
support cross-pollination. So I'm imagining a situation where a Jinga
guy starts playing around with TW5 and we get a posting to one of the
TW groups, something like: "I've noticed TW5 uses Jinga. Did you know
that if you combine TW5 with this Jinga tool you can do this amazing
thing..." The amazing thing being some new use for TW5, that nobody
had thought of before. And, as Chris points out, the cross-pollination
also works with communities. So some Jinga guy posts in a Jinga forum
"Have you seen this TW5 thing that uses Jinga, check it out" and as a
result we get a whole load more TW5 users and developers.

So if you do extend wikitext templating, it should not just be
inspired by mustach or Jinga2. It should be conformant with one of
those standards. I don't care which one, but it should avoid ploughing
its own furrow.

Martin

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" 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/tiddlywikidev?hl=en.

Reply via email to