Handlebars is a template library for JavaScript.
0
votes
0answers
5 views
Versioning Static Resources in HandlebarsJS Templates
I'm looking for tools (and techniques) to help with versioning my static asset (CSS, JS, image, etc) URLs within my HandlebarsJS templates. This is for a Node.js web app using express, and running ...
0
votes
1answer
19 views
Handlebars Template Management
This seems like a straightforward question, but my google-fu isn't working for me on this one.
After doing an ajax template load, how do we manage templates? Next time around I don't want to make a ...
0
votes
0answers
10 views
Custom Handlebars block helper
How do I define a custom block helper in Handlebars (for use with Ember.js)? I've tried using the method described on the Handlebars site, but it doesn't seem to work. I get this error from Ember.js:
...
1
vote
0answers
9 views
How do I access an array content using {{this}} inside a Handlebars loop?
I am currently using Handlebars to dynamically populate some panels. In one of them, I feel the need of repeating a given task.
// Add a looping helper for Handlebars
...
0
votes
1answer
11 views
Ember.js helper with mixed arguments
I'm using js-routes for Rails and would like to use this in combination with Ember.js. I wrote a helper to fetch the routes from the global Routes as provided by js-routes, but I can't seem to get it ...
1
vote
2answers
12 views
Ember.js bindAttr plus plaintext
How can I bind an attribute and concatenate some plaintext with it?
For example:
<span {{bindAttr title="updates 'revisions'"}}>{{updates}} revisions</span>
To produce:
<span ...
0
votes
0answers
57 views
How to create a new User object?
i have this code:
//Start of User Constuctor
function User(firstName,lastName){
this.first = firstName;
this.last = lastName;
this.quizScores = [];
this.currentScore = 0;
}
...
2
votes
0answers
25 views
How to observe on properties and clear them on reload
I'm reloading data for a view every 4 seconds with this
var App = Ember.Application.create({
ready: function() {
setInterval(function() {
App.Quotes.find().reload
}, ...
0
votes
1answer
17 views
Asynchronously update EmberJS Fixture Adapter
I have a table of links that I'm trying to pull from an external JSON file. Some simple HTML and Handlebars:
<table class="table">
<thead>
...
0
votes
1answer
22 views
Emberjs-1.0.0-rc.6 using enumerable to list events occurring on a particular date
When I define a controller action to display dates occuring a particular date, it works correctly, but If I convert that controller action to a property it stops displaying the date occuring on a ...
0
votes
1answer
22 views
Emberjs-1.0.0-rc.6 unable to filter controller content to return values for a particular property
I have CalendarController that uses the needs api to access AppointmentController, with the intent of filtering the content AppointmentController and return only event.start. But I have tried filter() ...
0
votes
2answers
52 views
How not to use CSS files on some pages of the site?
How to specify which pages to load one or ong CSS files?
For example:
/ admin
--- admin.css
--- control.css
--- bootstrap.css
/ contacts
--- styles.css
--- slider.css
0
votes
0answers
17 views
Handlebars template - each label appending to seperate div element, how to make to append in single div element
I am using Handlebars for templating purpose.. i have a sample objects, basically, all this values need to put in to 3 colum layout..
i used a helper to split them all in 3 columns, and added a key ...
0
votes
4answers
20 views
jQuery event doesn't fire on Handlebars template
This is my first time using stackoverflow. Hopefully everything makes sense.
I'm using tableTop.js and Handlebars to bring data from a google spreadsheet.
When data is loaded each one has a radio ...
0
votes
1answer
24 views
Handlebars does not render url as expected
I'm starting a small web project using ember and a json api.
It contains currently a single page with following content :
<!DOCTYPE html>
<html lang="en">
<head>
<meta ...
-1
votes
1answer
50 views
Cordova/phonegap application with yeoman/backbone/handlebars/require
I've tried to follow this tutorials:
http://www.gauntface.co.uk/blog/2013/07/18/cordova-web-best-practices/
http://rockyj.in/2013/05/11/yeoman_and_backbone.html
to develop my test cordova ...
0
votes
1answer
17 views
Handlebars.js Partial Sub-Template generation
I am having issue with the Partials/Sub Template generation in the Handlebars.js.
I have used the registerPartials Method properly, but still it is giving some sort of issue in rendering. If I remove ...
4
votes
3answers
84 views
Meteor: HIde or remove element? What is the best way
I am quite new with Meteor but have really been enjoying it and this is my first reactive app that I am building.
I would like to know a way that I can remove the .main element when the user clicks ...
0
votes
1answer
23 views
emberjs didInsertElement not called
I'm fairly new to emberjs and have stumbled upon a problem when attempting to utilize the didInsertElement event.
I've create a JSFiddle where you can see that the handlebars templates are actually ...
3
votes
1answer
43 views
Autocomplete using Ember.js
I have been unable to figure this one out...
I want to build an autocomplete box that displays a list of contacts based on the search. I currently have this controller for the users:
...
0
votes
0answers
7 views
update handlebars template with new data in node+express
I've managed to get my handlebars working in a node+express app and loading in data from tweets based on a hashtag which I'm retrieving no problems and rendering the tweets on the page the first time ...
0
votes
1answer
31 views
Handlebars array access with dynamic index
How can I access to an array element inside handlebars template using a variable instead of an hardcoded value?
I need to do something like:
{{#each condition in conditions}}
...
1
vote
1answer
28 views
Why is bindAttr not working with disabled? Is this a bug?
I am trying to bind the disabled state of a Bootstrap button to a property like this:
<a class="btn btn-large" href="#" {{bindAttr disabled="isDisabled"}} >. . .</a>
In the following ...
1
vote
1answer
26 views
Ember.js - Cannot render nested models
Have an upcoming weekend project and using it to evaluate Ember.js and I cannot figure out why I cannot display nested objects in my template. This does not work:
{{#each emails}}
{{email_address}}
...
0
votes
0answers
12 views
grunt-contrib-handlebars output is different from handlebars npm task
My issue is very similar to grunt-contrib-handlebars - Output is different than when I run the handlebars npm task, but no one has answered that question so I thought I'd start my own.
I'm trying to ...
1
vote
1answer
30 views
Node.js+Handlebars+Express how to reference the handlebars templates?
I'm relative new to Node & Express, but handlebars templates I've never used before and trying to reference them in my node app.js but I keep on getting the following error
Property 'engine' of ...
2
votes
2answers
47 views
Applying a Handlebars template in JavaScript code
I'm trying to use Ember's Handlebars engine for a not UI related purpose. I have a series of text templates (basically placeholders + static text), like
Order number {{number}} / {{year}}
I'm using ...
0
votes
1answer
29 views
not able to access the JSON object in handlebar.js
I am new to handlebar.js. i want to access the Home.Names.Id while am iterating through Home.Room in handlebar template.
but am getting empty value.
{{#Home.Room}}
{{Home.Names.id}}
...
0
votes
1answer
40 views
Foundation Orbit not working with Handlebars
I'm having problems getting Foundation orbit to work. I can call it from regular HTML and it works fine but when I try to use dynamically generated Handlebars HTML, it does not load.
The page is ...
0
votes
0answers
14 views
Handlebars precompiled templates not getting a name with Grunt.js
My Handlebars templates do not get names after compiling with Grunt.
This is my grunt task... When i console.log(Handlebars), the length of the templates property stays 1. And i can't call a template ...