Hi,
As you know, a single String can define many key/value properties. For instance, a query String can be defined as
someKey=someValue&anotherKey=anotherValue
Now i need to define a pattern in which a single String can define many key/value properties to be stored in a class attribute. But each value can be a String, an Array, A reference to a JavaScript function etc. Something like (Hypothetical pattern)
class="p=[1,2,3,4]&a=aaa&c=f()"
Its purpose: post-processing input Field through class atribute
Any advice to define a good pattern ?