Ticket #1187 (closed enhancement: wontfix)

Opened 2 years ago

Last modified 12 months ago

update tiddler macro to support data parameter.

Reported by: jdlrobson Owned by: JeremyRuston
Priority: minor Milestone: 2011.cleanup
Component: core Version:
Severity: trivial Keywords: macro tiddler
Cc:

Description (last modified by FND) (diff)

I believe with a small amount of code we can improve the tiddler macro to be more powerful.

This will be of use to TiddlyWeb development and also would lessen the need for using things such as the forEachTiddlerPlugin.

<<tiddler Template data:[[foo]]>>

Would print the tiddler with title "Template" however would do so in the context of the tiddler with title "foo"

If the text of "Template" was: <<view title> is the name of this tiddler.

Then the result of this macro call would be: foo is the name of this tiddler.

A tiddlywiki demonstrating the benefits and usage of this here:  http://www.jonrobson.me.uk/development/Tiddlers.html

I have attached a patch to Macros.js that provides this functionality.

Attachments

Macros.patch Download (1.6 KB) - added by jdlrobson 2 years ago.

Change History

Changed 2 years ago by jdlrobson

Changed 2 years ago by FND

  • description modified (diff)
  • priority changed from trivial to minor
  • milestone set to 2.6
  • keywords tiddlywiki removed
  • type changed from defect to enhancement
  • severity changed from undefined to trivial

Changed 2 years ago by FND

  • summary changed from [TiddlyWiki] update tiddler macro to support data parameter. to update tiddler macro to support data parameter.

Changed 2 years ago by FND

  • milestone changed from 2.6 to 2.6.2

cf. #890

Changed 18 months ago by MartinBudden

  • milestone changed from 2.6.2 to 2.7.1

Milestone 2.6.2 deleted

Changed 12 months ago by cdent

  • status changed from new to closed
  • resolution set to wontfix
  • milestone changed from 2.7.1 to 2011.cleanup

this seems to be plugin territory, not core territory?

Note: See TracTickets for help on using tickets.