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 6960689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:26:02+00:00 2026-05-27T15:26:02+00:00

I have a custom handlebar helper: Handlebars.registerHelper(‘foo’, function(key) { return (key + ‘ bar’);

  • 0

I have a custom handlebar helper:

Handlebars.registerHelper('foo', function(key) {
    return (key + ' bar');
});

and in my html I have:

{{foo beer}}

the result is

<div id="ember127" class="ember-view">beer bar</div>

how can I make my own handlebar helper act like the ember {{unbound beer}} and just produce “beer bar” without any additional markup ?

  • 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-05-27T15:26:03+00:00Added an answer on May 27, 2026 at 3:26 pm

    So I think you might be confused on how the helpers, templates, and Ember views work exactly. The markup you created is expected and is the exact markup you’d get with a working unbound helper.

    Ember.Handlebars templates are always placed within an Ember view object (as you have above). Something that a normal bound helper would produce would be:

    <div id="ember127" class="ember-view">
      <script id="metamorph-1-start" type="text/x-placeholder"></script>
          beer bar
      <script id="metamorph-1-end" type="text/x-placeholder"></script>
    </div>
    

    Now if you want to surround your string with some other tag than a div (lets say an anchor tag or something), then you’d need to create a view, set it’s template and tag name, then append that view.

    Take a look at this jsFiddle and take a look at the results pane in your inspector for some examples of what I’m talking about. Hope that clears things up for you.

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

Sidebar

Related Questions

i have custom cell with 2 buttons(the function of these buttons is just to
I have this custom error handler: `class AppError extends ErrorHandler { function error404($params) {
I have a custom error handler attached to E_ALL PHP errors. In an external
I have a custom event handler, or I suppose some call it a custom
I currently have a custom session handler class which simply builds on php's session
I have designed a custom section handler before but I'm faced with a problem
Given that I have a custom PHP error handler already, does it make sense
I made a custom handler that derives from MvcHandler. I have my routes using
I have custom coded several enterprise applications for mid to large organizations to use
I have custom errors configured in my web.config, but IIS 6.0 is returning the

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.