Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow named parameters #63

Open
tobibeer opened this issue Sep 24, 2013 · 0 comments
Open

allow named parameters #63

tobibeer opened this issue Sep 24, 2013 · 0 comments

Comments

@tobibeer
Copy link
Owner

Idea

Instead of just $1..$9, allow named parameters, e.g. $(foo}. The curly braces are needed to precisely identify the variable within its context.

This can be achieved using named parameters like so...

<<get $:"var1name:value1" $:"var2name:value2"

which results in these variables being usable in the template...

  • ${var1name} => value1
  • ${var2name} => value2

As a general convention, variable names must only contain alphanumeric characters.

Also make sure that params don't get substituted sequentially but at once, see TemplateTiddlersPlugin, e.g. START_TAG and END_TAG

Consider

supplant() — by Douglas Crockford

Discussion

with Stephan Hradek
https://groups.google.com/d/msg/tiddlywiki/-l-VGBXb9vo/urCnXxqKmOYJ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant