Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.


Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Embedded HTML


2 Posts   1136 Views


3 October 2007 at 3:28pm (Last edited: 3 October 2007 3:41pm), 1 Post

Just wondering about ways to embed SS variables in HTML.
I'm doing the following:

<% control Days %>
   <span><img src="$DayNo.png"/></span>
<% end_control %>

$DayNo is my variable, and I have several .png pictures (1.png, etc) to display. I know the . is for method calls, so is there any way to avoid this?

EDIT: Found the answer: curly braces.
<img src="{$DayNo}.png"/>


3 October 2007 at 4:16pm Forum Moderator, 5511 Posts

Yes {} is the way to go. don't forget your alt tags on your images :D