Perhaps by <<set>>ing a list of key-values...
For example, this works:
<<set $rules = {
start: "Say my name $name!",
name: "Golden | Bill"
}>>
<<= RiTa.grammar($rules).expand()>>
this's cool, but seems that the set value can't be put in the content like this:
<<rg>>
$rules
<</rg>>
I have made a little change for the macro to be able to take in JSON object, js object and also set value (need to be pass in args)
Interesting -- I wonder what the most user-friendly option is...
The other thing that would be nice is to pass the Twine context to RiTa.grammar so that Twine-declared variables can be used inside the grammar
hmm personally I think yes, I would use it like this in my work
<<rg>>
{
...rules
}
<</rg>>
I think for me this is a better way to organise text, and I don't need to use dynamic symbols (just a personal preference)