Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9221681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:37:45+00:00 2026-06-18T03:37:45+00:00

Using: ember: v1.0.0-pre.4 ember-data: revision 11 handlebars: 1.0.rc2 So I have a template that

  • 0

Using:

  • ember: v1.0.0-pre.4
  • ember-data: revision 11
  • handlebars: 1.0.rc2

So I have a template that I’ve hooked up to a controller that’s receiving info from an REST API. In just print out text, this is fine but these handlebar expression…

<img src="{{ imageUrl }}"/> 

…when inserted into the dom look like:

<img src="&lt;script id='metamorph-28-start' type='text/x-placeholder'&gt;&lt;/script&gt;http://asdf.com/image.jpg&lt;script id='metamorph-28-end' type='text/x-placeholder'&gt;&lt;/script&gt;">

I’m obviously very new to Ember.js and Handlebars.

I’ve tried doing searches for “rendering urls in ember templates” and “print out html in ember mustache templates.” Ack, probably obvious but I’m missing it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T03:37:46+00:00Added an answer on June 18, 2026 at 3:37 am

    try this:

    <img {{bind-attr src="imageUrl"}} />

    but you can have more than just one attribute like:

    <img {{bind-attr src="imageUrl" alt="imageTitle"}}>

    here is the doc: http://emberjs.com/api/classes/Ember.Handlebars.helpers.html#method_bind-attr

    also, can be useful in some cases where you don’t need the variable to be bound, you could use:

    <img src="{{unbound imageUrl}}" />

    ref to the doc: http://emberjs.com/api/classes/Ember.Handlebars.helpers.html#method_unbound

    but the first method is usually the best.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using ember 1.0 pre and have a basic array controller that starts out
Using: Ember commit a5d45f66e1 from Jan 3, 2013) Ember-Data commit 508479dee7 from Jan 4,
I am have difficulty setting a belongsTo relationship using ember data. I have a
I'm using Ember and Ember-data to load a few hundred objects from a REST
I'm writing a simple sort / pagination controller using ember pre 1.0. I want
I have been using Ember's Router (v1.0.pre) with single dynamic segments and really happy
I'm using Ember to retrieve JSON data from an API to insert into a
Explanation: I'm using ember-data for a project of mine and I have a question
Using ember 1.0.0-pre3 I have a little app that has this code: window.App =
Using: ember.js commit b2e82ae ember-data.js commit 001ba0c handlebars-1.0.rc.2.js This used to work already with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.