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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:54:09+00:00 2026-06-11T04:54:09+00:00

How I can do to get the template Handlebars from file, like this: App.ApplicationView

  • 0

How I can do to get the template Handlebars from file, like this:

App.ApplicationView = Ember.View.extend({templateName: ‘templates/myTemplate1.handlebars’});

not from script:

< script type=”text/x-handlebars” data-template-name=”myTemplate1″>

Update

I Will implement Ember-Brunch handlebars template pre-compiling

  • 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-11T04:54:10+00:00Added an answer on June 11, 2026 at 4:54 am

    If you intend on assembling your finished application you can use something like rake-pipeline. This, of course, implies that you also need to use rake-pipeline during development.

    If you do not want to assemble your templates, you can call Ember.TEMPLATES[‘templateName’] = Ember.Handlebars.compile(‘template content goes here’) in your app. You can then separate these templates out to different files, which you will include in your index.html file.

    Other than that I do not think there are other options. You could fetch your templates via an AJAX call and feed them into Ember.Handlebars.compile, but then you risk your templates being available too late in the application’s lifecycle. Another option is to generate this on-the-fly on the server that delivers your Ember app, but you then most likely have to build-your-own solution.

    Refer to the following for an application that uses the Ember.TEMPLATES[”] option: https://github.com/joachimhs/haagen-software.no/tree/master/app/

    It is a little cumbersome, but you do get used to it…

    There really isn’t that many great options for this sort of functionality, and its not a whole lot Ember.js can do about it I’m afraid. .

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

Sidebar

Related Questions

How can I get a value from a preprocess function to template.php, in a
This is driving me nuts. I can't seem to get the data template within
I'm building a django app and I can't get the templates to see the
HTML header `<script type=text/x-handlebars data-template-name=application> {{view App.NavbarView}} {{outlet}} </script>` footer JS `App.ApplicationController = Em.Controller.extend();
In my index.html I have the following template <script type=text/x-handlebars> {{#with ChatApp.messagesController}} {{view Ember.TextArea
I have a product block in a template like this : <script type=text/x-handlebars-template id=tmpl-person>
I can get the file path with: (message (file-name-directory (or buffer-file-name load-file-name))) But if
I can get this to work: [<DllImport(user32.dll)>] extern bool GetClientRect(nativeint, RECT*) let getClientRect hwnd
I'm trying to compile a bunch of handlebars templates into a single compiled file
I have a handlebars template in a public directory. I'd like to access the

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.