I am getting a JSON from contollers and on the basisi of value of this JSON i want to set key in my dust file, so that this key will access data from properties file.
For example I am getting "step" from controllers.
{
step: step1
}
I want to set key in dust:
{@pre type="content" key="{step}"/}
and in properties I have
step1=This is dynamic key
step2=print this
but i am getting step1 in dust. its not accesing the values of keys. Can anyone suggest me how to display values associated with keys in this situtaion.
when
step
is a variable. To set a string, ex: 'stackoverflow', try: