Please fill out these Check-boxes
Plugin Version
1.4.6
This Issue Occurs on
Debug Info
Console output when running the example:
Hello ${context.args.greeting}!
Describe the Issue
Using the example at https://www.moritzjung.dev/obsidian-meta-bind-plugin-docs/reference/buttonactions/runjavascript/ I would suggest that using the context variable is presented wrong. Instead of:
console.log('Hello ${context.args.greeting}!');
it should be:
console.log('Hello ' + context.args.greetings + '!');
as this is not any templating code or such, but JavaScript. The example as it is just prints the original string "Hello ${context.args.greeting}!" without any variable expansion.
Great plugin btw... thank you for all the hard work :-).
Steps to Reproduce
Just set up the example and run it.
Expected Behavior
The variable should be expanded and the actual value should be printed.
Please fill out these Check-boxes
Plugin Version
1.4.6
This Issue Occurs on
Debug Info
Describe the Issue
Using the example at https://www.moritzjung.dev/obsidian-meta-bind-plugin-docs/reference/buttonactions/runjavascript/ I would suggest that using the context variable is presented wrong. Instead of:
console.log('Hello ${context.args.greeting}!');
it should be:
console.log('Hello ' + context.args.greetings + '!');
as this is not any templating code or such, but JavaScript. The example as it is just prints the original string "Hello ${context.args.greeting}!" without any variable expansion.
Great plugin btw... thank you for all the hard work :-).
Steps to Reproduce
Just set up the example and run it.
Expected Behavior
The variable should be expanded and the actual value should be printed.