samedi 1 octobre 2016

Ember template not rendering, even when I set templateName

I try to crate a route with some template and nothing happend.
The template not rendering, I will show my files structure:

application.hbs:



<div id="gif" class="wrapper">
     
</div>


my router.js file:

Router.map(function() {
    this.route('DrawYourGif');
    this.route('VideoToGif');
    this.route('ImagesToGif');
});

my DrawYourGif.js route file:

export default Ember.Route.extend({
    templateName: 'draw'
});

my draw.hbs file:

Bla Bla Bla

That's all, The problem is that nothing is rendering, I see blank page where the template should render (The header & footer rendering well).

What's the problem?
The index template is rendering into the outlet, so I don't know whats the problem here...




Aucun commentaire:

Enregistrer un commentaire