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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:00:47+00:00 2026-06-11T02:00:47+00:00

Is there any way to precompile Handlebars template, so that it will be aware

  • 0

Is there any way to precompile Handlebars template, so that it will be aware about Ember.js helpers, like “action”, “view”, etc.?

The reason I’m asking is because I need to use Ember.js with a runtime-only build of the Handlebars (due to CSP in Google Chrome), and it seems that Ember.js does not completely support currently such scenario:
https://github.com/emberjs/ember.js/issues/1303

  • 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-11T02:00:49+00:00Added an answer on June 11, 2026 at 2:00 am

    You can precompile an Ember Handlebars template using Ember.Handlebars.precompile (ember-handlebars/lib/ext.js#L104).

    The basic strategy to use for precompilation outside of a browser (in node, for example) is:

    • Load handlebars.js
    • Load ember.js
    • Shim out a few browser APIs that Ember expects (this should not be necessary in 1.0, but it is necessary today).
    • template = Ember.Handlebars.precompile(string)
    • Ember.TEMPLATES[name] = Ember.Handlebars.template(template)

    The ember-rails gem for Rails does this for you if you have an asset with the extension .handlebars.

    The ember-rails gem also maintains a shim .js file that you can use to precompile in other non-browser environments (ember-precompiler.js).

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

Sidebar

Related Questions

Is there any way I can set a formatter on models that will convert
Is there any way to stop animation in iOS 3 ? I know about:
Is there any way to achieve compiling Node.js scripts as native code, like Hip-Hop
Is there any way to precompile an MSIL file and then have the .net
Basically what I would like to know is if there is any way to
Is there any way to pre compile stored procedures in SQL Server? My requirement
Is there any way in Notepad++ (or even with another tool) to change the
Is there any way to use Google's API to retrieve a user's current zipcode
Is there any way to overload the > (greater than) operator, to be able
Is there any way we can fetch X509 Public Cetrificates using c# from AD

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.