Open reggi opened 9 years ago
Originally posted here https://github.com/Shopify/liquid/issues/493
Can we please get a way to create variables with variable names :)
{% assign myVar = "hello" %} {% assign [myVar] = "hello2" %} {{ hello }} <!-- hello2 -->
or
{% assign myVar = "hello" %} {% assign global[myVar] = "hello2" %} {{ hello }} <!-- hello2 -->
or create objects :) or append to existing objects :)
{% assign shop.hello = "win" %} {{ shop.hello }}
and
{% assign shop["hello"] = "win" %} {{ shop["hello"] }}
Can we please get a way to create variables with variable names :)
or
or create objects :) or append to existing objects :)
and