In lightning, we can reference to static resource by a value provider like:
<img src="{!$Resource.staticResource}"/>
Is there any smart way to make it dynamic like:
<aura:attribute name="resourceName" type="String" default="res"/>
<img src="{!$Resource.v.resourceName}"/>
For VF+Apex it was possible, but the documentation for Lightning does not say anything about that kind of possibility. Have anyone, by chance, found a smart way to do that ?
Thanks!