Discussion:
Issue 66 in json-template: <img> src being ignored.
j***@public.gmane.org
2011-09-29 14:22:37 UTC
Permalink
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 66 by HSedel...-***@public.gmane.org: <img> src being ignored.
http://code.google.com/p/json-template/issues/detail?id=66

Hey fellows, great work but I have a problem!

-What steps will reproduce the problem?
1. I want to insert a variable into an <img> tag in the "src"
But It's completely ignoring the "src"-part.
If I have the exact same variable in any other part of the IMG-tag it works.
For example id="{User.Picture}", but src="{User.Picture}"
outputs 'src="%7BUser.Picture%7D"'.

Why is src being ignored like this? Can't find any information about this
elsewhere, so please help.


Thanks in advance!
/Henrik Sedelius
--
You received this message because you are subscribed to the Google Groups "JSON Template" group.
To post to this group, send email to json-template-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to json-template+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/json-template?hl=en.
j***@public.gmane.org
2011-11-15 07:39:42 UTC
Permalink
Comment #1 on issue 66 by andyc...-***@public.gmane.org: <img> src being ignored.
http://code.google.com/p/json-template/issues/detail?id=66

Sorry for the very late response -- I can't really see what may have gone
wrong. You might need to escape it properly though:

<img src="{User.Picture|htmltag}" />

I'd need an example to look into it any further (e.g. attach something that
can be run)
--
You received this message because you are subscribed to the Google Groups "JSON Template" group.
To post to this group, send email to json-template-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to json-template+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/json-template?hl=en.
Loading...