I created a helper in Handlebars to help with logic, but my template parses the returned html as text rather than html.  I have a quiz results page that is rendered after the quiz is completed:    <script id="quiz-result" type="text/x-...
My object looks like this:  ['foo','bar','baz']   And I want to use a mustache template to produce from it something like this:  "<ul><li>foo</li><li>bar</li><li>baz</li></ul>...
Is it possible to call a function with arguments with Mustache.js {{somefunction(somevalue)}}  thank you...
This is what I'd like to do in Mustache.js but not seeing how with the documentation.  var view = {items:['Mercury','Venus','Earth','Mars']}; var template = "<ul> {{#items}}<li>{{i}} - {{.}}</li&...
Is it possible to do this with Mustache.js?   var data = {"val":"3"},     template = '<select>' +                     '<option value="1">1</option>' +                     '<option value...
I am using the mustache template engine and I only want to display the first item in a long list but cant seem to find the docs for doing so?   if I use:  {{# links}}<a href="{{& url}}">{{& title }}</a>{{/ links}}   i get...
The documentation makes no mention of Mustache.to_html(), but every tutorial for Mustache.js online uses Mustache.to_html(). Therefore I am surely missing some jewels.   Code examples would be very much appreciated....
I'm trying to create a table with a JSON Object using Mustache.js.  I wanted it to show two rows, however it's only showing the second row only.  I suspect that the first row is being overwritten by the second when it's being bound again...
I'm looking to use hogan.js to create html form a template in the browser.  I've read that hogan supports i18n, but I can't find an example of how this works.  How do you pass the translated text to hogan and what tag do you put in the te...
I'm currently using Handlebars.js (associated with Backbone and jQuery) to make a web app almost totally client side rendered, and I'm having issues with the internationalisation of this app.  How can I make this work?  Are there any plugins?...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.