General developer forum

Use a variable as string in the "str" helper function in mustache

 
Picture of alberto lara
Use a variable as string in the "str" helper function in mustache
 

Can I use a variable in the str helper function in mustache?

Simple example:

{{# str }} helloworld, mod_greeting {{/ str }}

With variable?

{{# str }} {{ MYVARIABLE }}, mod_greeting {{/ str }}

 
Average of ratings: -