kingpin2k / handlebarshelper Goto Github PK
View Code? Open in Web Editor NEWSome C# helpers for server side handlebars compilation (Ember centric)
License: MIT License
Some C# helpers for server side handlebars compilation (Ember centric)
License: MIT License
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.
Add documentation, maybe update the example
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.
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.