Questions tagged [grunt-ember-templates]

grunt-ember-templates is a grunt.js plugin that precompiles handlebars.js templates and places them into the Ember.TEMPLATES[] array which is used by Ember.js to store compiled templates.

grunt-ember-templates is a grunt.js plugin that precompiles handlebars.js templates and places them into the Ember.TEMPLATES[] array which is used by Ember.js to store compiled templates.

17 questions
7
votes
1 answer

Ember JS 1.8.1 + Chrome - Additional whitespaces

I have a problem in the app that I'm working on, since I upgraded EmberJS from 1.6.1 to 1.8.1. It happens only under Chrome. The issue is that somehow my templates are being rendered with lots of additional spaces surrounding each html node. So to…
Imp
  • 151
  • 6
5
votes
4 answers

Emberjs increment in the template

I feel like I may be doing to much for a simple problem. If index = 0, how do I increment index in a template. Ideally, I would like to do something like this. {{index+1}} From what I understand the solution is to write a helper function like the…
user2517182
  • 1,241
  • 3
  • 15
  • 37
3
votes
1 answer

Uncaught Error: Template was precompiled with an older version of Handlebars

I'm using Bower to manage my frontend dependencies and grunt-ember-templates to precompile handlebars templates. These are the dependencies in bower.json: "devDependencies": { "ember": "~1.3.1", "jquery": "~2.0.3", "normalize-css": "~2.1.3", …
Pavel Bastov
  • 6,911
  • 7
  • 39
  • 48
3
votes
1 answer

What is the matching template name for a given data-template-name

I am precompiling my templates using grunt-ember-templates. This tool is putting my templates in the Ember.TEMPLATES array, as expected. I am finetuning the configuration of grunt-ember-templates. For that I would like to know what is the expected…
blueFast
  • 41,341
  • 63
  • 198
  • 344
2
votes
1 answer

Sails.js, Ember, Handlebars and configuration via grunt-ember-templates: templates file not created

Found the link Sails JS with EJS but linker to compile handlebars public templates and it looks straight forward but somehow it does not work with my current sails version with jade Here's the current Grunt Configuration in…
tomatom
  • 419
  • 4
  • 9
2
votes
0 answers

component templates defined within subfolder causing error when compiling them using grunt-ember-templates

We are relying heavily on ember components. Initially we had all our hbs templates associated with components written within "templates/components" folder, but since the number of components are growing we wanted to give more structure and define…
Deewendra Shrestha
  • 2,313
  • 1
  • 23
  • 53
2
votes
1 answer

Using Ember view helper in handlebars template with global var

Is there any way to reference an Ember view in the handlebars view helper without using the Ember Application global var? I'm getting the error below after precompiling my handlebars templates and minifying my Ember code using Grunt. This seems to…
Michael Stone
  • 177
  • 1
  • 8
1
vote
0 answers

Error "no global: `self` or `global` found" running ember-template-compiler in grunt

Trying to upgrade an Ember project to version 2, still using Grunt as the build tool, getting this error after adding ember-template compiler task: "Running "emberTemplates:dist" (emberTemplates) task Error: ember-template-compiler.js:869 …
Eric Grotke
  • 4,651
  • 3
  • 21
  • 19
1
vote
1 answer

Remove default line break after using an Ember-component in templates ofember-cli project

when i use a ember-component for example {{blog-post title=title}} {{/blog-post}}

Welcome to my Blog

I donot want a line break between component and htlml tag.
1
vote
0 answers

Multiple Ember Apps in one Yeoman Ember project

Is it possible have multiple apps that share UI/CSS/libs etc. in one yeoman ember project with one Gruntfile.js? I have tried using the Yeoman ember generator, and it is wonderful for 1 app environment at a time. But my situation is that I have…
1
vote
0 answers

unable to load ember templates from external files using grunt-ember-templates

My index.html is in root directory and I have specified application template in that itself. I have a templates directory in which I keep the .hbs templates. The Gruntfile is this: module.exports = function(grunt) { // Project…
Jatin
  • 14,112
  • 16
  • 49
  • 78
1
vote
1 answer

Ember, Handlebars, Contrib-Ember-Templates produce malformed templates on mobile browsers

Using Gruntjs plugin contrib-ember-templates produces incorrect results when viewed on a mobile browser. Generated Template
Ben Crowhurst
  • 8,204
  • 6
  • 48
  • 78
0
votes
1 answer

How to render ember template for a nested dynamic route?

js`, I have declared some nested routes like this: Router.map(function() { this.route('index', { path: '/' }) this.route('orders', function() { this.route('details', { path: '/:order_id' }); }); this.route('not-found', { path: '/*path'…
0
votes
1 answer

Ember templates, error when inlined in HTML, after compiled

I'm compiling Ember templates into a JS source file, which loads properly when loaded as an external source in the HTML. However, when I inline the same source file into the HTML (which is required for the current project), I get the following error…
0
votes
2 answers

Ember.js: How to dispaly only a part of model in template?

In a template: {{#each displayVideos}} Index: {{_view.contentIndex}} {{/each}} It will display all item in model. But I want to display only some item depend on index(ex: Display item if index%2==0). Any idea about it? Thanks
hoangmeo325
  • 450
  • 2
  • 10
  • 18
1
2