Closed dryaf closed 8 years ago
found the solution!
here it is if somebody stumbles in the same situation
function GetImgUrl(value) {
return '/timgs/t'+value+'.jpg';
}
var myHelpers = {imgurl: GetImgUrl};
$.views.helpers(myHelpers);
and
<img class="card-img" src="" data-link="src{:~imgurl(ID)}" />
The :
has to precede the whole expression, right after the {
: src{:some expression here}
.
So this should also work:
<img class="card-img" data-link="src{:'/timgs/t' + ID + '.jpg' }"
oh , nice. Thx
The wrong syntax you had will now trigger an exception with a syntax error message - with fix in v0.9.72
Hi,
I have an array with objects (Name and ID) I want to make a simply image gallery.
and a Template
simply linking it via
I don't get an error, and the img-tag 's src attribute isn't set? so i don't get the images Am I missing something?
the rest works fine