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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:49:14+00:00 2026-06-13T13:49:14+00:00

So i have these script includes: <script src=js/vendor/modernizr-2.6.2.min.js></script> <script src=//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js></script> <script src=js/vendor/ember-1.0.0-pre.2.min.js></script> <script src=js/vendor/handlebars-1.0.rc.1.js></script>

  • 0

So i have these script includes:

    <script src="js/vendor/modernizr-2.6.2.min.js"></script>
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js"></script>
    <script src="js/vendor/ember-1.0.0-pre.2.min.js"></script>
    <script src="js/vendor/handlebars-1.0.rc.1.js"></script>
    <script src="http://yui.yahooapis.com/3.7.3/build/yui/yui-min.js"></script>
    <script src="js/main.js"></script>

This in my head tag:

        <script type="text/x-handlebars" data-template-name="application">
            WTF

        </script>

And this in my main.js:

window.Stocks = Ember.Application.create();

Stocks.Router = Em.Router.extend({
    initialState: 'root.home',
    root: Em.Route.extend({
        home: Em.Route.extend({
            view: Stocks.CurrentStocksView
        })
    })
});

Stocks.CurrentStocksView = Ember.View.extend({
    templateName: 'application',
    appendTo: function() {
        this._super('#current');
    }
});


// Startup call
Stocks.initialize();

And i’ve totally lost the way. I just want to print “WTF” bewteen the . And do i need to include the script tag voor handlebars?

  • 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-06-13T13:49:15+00:00Added an answer on June 13, 2026 at 1:49 pm

    First, you seems to use ember 1.0.0-pre2. So you don’t have to specify Stocks.initialize() unless you set the autoinit Ember.Application property to false:

    Stocks = Ember.Application.create({
      autoinit: false
    });
    
    // omitted code
    
    Stocks.initialize(); // needed because the app is not automatically initialized
    

    Next, you should include Handlebars before loading ember:

    <script src="js/vendor/handlebars-1.0.rc.1.js"></script>
    <script src="js/vendor/ember-1.0.0-pre.2.min.js"></script>
    

    And it should work, as you can see in this JSFiddle.

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

Sidebar

Related Questions

I have a Ci script outputting database values. On these values '#commentLink' and '#commentBox'
I have an HTML file containing these lines - <script>PrintFileURL("13572_BranchInformationReport_2012-06-29.xml","13572_BranchInformationReport_2012-06-29.zip",0,"184277","Jun 29 1:30","/icons/default.gif")</script> <script>PrintFileURL("13572_BranchInformationReport_2012-07-02.zip","13572_BranchInformationReport_2012-07-02.zip",0,"184302","Jul 2
I have a dozen configuration properties files for the ant script. These files are
I have a bookmarklet, clicking the bookmarklet includes a PHP script (evaluated as a
In my HTML-head i have this script included: <script id=mode type=text/javascript src=article.js></script> With a
I have created total 50 test scripts. All these scripts use almost same objects
I want to create script to edit photos in galery. I have there textbox
Is there any batch script compiler available? I have a very big batch file
I have a script that is supposed to sit there, happily running in a
I have a working script from someone, there in is this line: this.event =

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.