GithubHelp home page GithubHelp logo

kingpin2k / handlebarshelper Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 3.0 8.38 MB

Some C# helpers for server side handlebars compilation (Ember centric)

License: MIT License

C# 1.02% JavaScript 98.97% CSS 0.01% ASP 0.01%

handlebarshelper's People

Contributors

ad-ab avatar kingpin2k avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

handlebarshelper's Issues

hc.Precompile very slow

With the change to handlebars 2.0 our azure webrole (instance 0 - 0,25CPU and 768Mb Ram) is very slow at compiling templates. With handlebars 1.3 it was nearly instant on the same servers. I am trying to profile our azure webroles but its prooving to be a pain in the ass since the only place this occurs is in the cloud.
Any idea what might cause this?

Edit: Even on my i7 local machine the compilation of hbs files takes around 2 seconds. This was instant using the handlebars 1.3 version.
Edit: After profiling a bit I found out that the precompile operation takes over 90% of cpu time during the request.

Resolution: Actually it doesn't make sense to compile the templates all the time. We cache them now, so only 1st load is slow. Next step will be to upload the compiled templates to the cdn and use those primarily... But still before it was a no-issue.

HTML Bars

With the recent release of version 1.10 of EmberJs. Will you create an update for HTMLBars? I will try to look into it soon, but just tough i would ask first. I will try to create a pull request if i manage to get it working.

since ember-template-compiler.js

I have been using this package for my Ember for a while. I wondered since the latest ember versions (1.11.*) are replacing handlebars.js with ember-template-compiler.js is this package still viable? will it still handle the hbs files in my mvc projects?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.