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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T17:14:19+00:00 2026-05-29T17:14:19+00:00

I have a mustache.js template defined like so: <script id=wishlist_template type=text/html> <h1>aaa{{ title }}</h1>

  • 0

I have a mustache.js template defined like so:

<script id="wishlist_template" type="text/html">
      <h1>aaa{{ title }}</h1>
    </script>

I’ve tried to use Mustache directly, then ICanHaz.js, neither seem to be doing the job. If I pass in:

console.log( ich.wishlist_template('{title: "blah blah"}') );

All I see in the console log is:

<h1>aaa</h1>

I’ve also tried it with a true object, the one I’m trying to render (the above code is my attempt at figuring out the problem).

  • 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-29T17:14:23+00:00Added an answer on May 29, 2026 at 5:14 pm

    '{title: "blah blah"}' is not a valid object literal, but rather just a string. Instead it should be {title: "blah blah"} without the quotes. See the article A Survey of the JavaScript Programming Language for a great explanation of object literals.

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

Sidebar

Related Questions

this is my html: <script type=text/html id=ul-template> <ul id=list> {{> li-templ}} </ul> </script> <script
I use underscore.js for HTML Templating, set to use mustache syntax, like this: {{
I have a dynamic page built with jQuery. Html pieces are loaded from mustache
Have an app that can use tts to read text messages. It can also
I have a simple mustache template setup that takes an object player and creates
I am new to the mustache template library and have the following scenario. I
I'm trying to use mustache JS templates dynamically. I'll have an array of templates
Have you managed to get Aptana Studio debugging to work? I tried following this,
I'm using backbone's underscore templating engine with the mustache formatting patterns. I have already
Have a script to add / remove options from a select field -- 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.