How to generating links with a <img> using volt


Jan '15

Aug '15

2

1256

1


Thien
37.5k

Hi all

Today I will share trick how to generating link with tag images in Volt. To do that you just must following code below

{% set my_image = image('img/hello.gif', 'class':'myClass', 'title':'smellycat') %}

{{ link_to('products/search', my_image) }}

As you see, very very simple :)

This is awesome, today I was wondering how to do this :D Thank you.


Thien
15.9k

Thanks :)