Need advice about which tool to choose?Ask the StackShare community!

Electron

7.5K
6.7K
+ 1
136
Handlebars.js

5.8K
2.3K
+ 1
310
Add tool

Electron vs Handlebars.js: What are the differences?

Developers describe Electron as "Build cross platform desktop apps with web technologies. Formerly known as Atom Shell, made by GitHub". With Electron, creating a desktop application for your company or idea is easy. Initially developed for GitHub's Atom editor, Electron has since been used to create applications by companies like Microsoft, Facebook, Slack, and Docker. The Electron framework lets you write cross-platform desktop applications using JavaScript, HTML and CSS. It is based on io.js and Chromium and is used in the Atom editor. On the other hand, Handlebars.js is detailed as "Minimal Templating on Steroids". Handlebars.js is an extension to the Mustache templating language created by Chris Wanstrath. Handlebars.js and Mustache are both logicless templating languages that keep the view and the code separated like we all know they should be.

Electron and Handlebars.js are primarily classified as "Cross-Platform Desktop Development" and "Templating Languages & Extensions" tools respectively.

"Easy to make rich cross platform desktop applications" is the top reason why over 50 developers like Electron, while over 102 developers mention "Simple" as the leading cause for choosing Handlebars.js.

Electron and Handlebars.js are both open source tools. It seems that Electron with 74.9K GitHub stars and 9.8K forks on GitHub has more adoption than Handlebars.js with 14.6K GitHub stars and 1.87K GitHub forks.

Typeform, Starbucks, and OpenTable are some of the popular companies that use Handlebars.js, whereas Electron is used by Slack, Intuit, and InVisionApp. Handlebars.js has a broader approval, being mentioned in 643 company stacks & 175 developers stacks; compared to Electron, which is listed in 221 company stacks and 374 developer stacks.

Advice on Electron and Handlebars.js
Asad Gilani
Software Engineer at Lisec Automation · | 5 upvotes · 77.6K views
Needs advice
on
Liquid
and
Handlebars.js

@All: I am searching for the best template engine for .NET. I started looking into several template engines, including the Dotliquid, Handlebars.js, Scriban, and Razorlight. I found handlebar a bit difficult to use when using the loops and condition because you need to register for helper first. DotLiquid and Scriban were easy to use and in Razorlight I did not find the example for loops.

Can you please suggest which template engine is best suited for the use of conditional/list and looping and why? Or if anybody could provide me a resource or link where I can compare which is best?

Thanks In Advance

See more
Replies (1)
Josh Lind
Recommends
Handlebars.js

I like Handlebars, it's very mature... some would say-- outdated.

Handlebars loops are done via {{#each myList}}. Read the docs! https://handlebarsjs.com/guide

Remember, don't put logic in your templates! Keep this layer simple. Sorry to hear you have to use dotNet.

See more
Get Advice from developers at your company using Private StackShare. Sign up for Private StackShare.
Learn More
Pros of Electron
Pros of Handlebars.js
  • 66
    Easy to make rich cross platform desktop applications
  • 50
    Open source
  • 11
    Great looking apps such as Slack and Visual Studio Code
  • 6
    Because it's cross platform
  • 3
    Use Node.js in the Main Process
  • 106
    Simple
  • 77
    Great templating language
  • 51
    Open source
  • 36
    Logicless
  • 20
    Integrates well into any codebase
  • 10
    Easy to create helper methods for complex scenarios
  • 7
    Created by Yehuda Katz
  • 2
    Easy For Fornt End Developers,learn backend
  • 1
    Awesome
  • 0
    W

Sign up to add or upvote prosMake informed product decisions

Cons of Electron
Cons of Handlebars.js
  • 17
    Uses a lot of memory
  • 8
    User experience never as good as a native app
  • 4
    No proper documentation
  • 4
    Does not native
  • 1
    Each app needs to install a new chromium + nodejs
  • 1
    Wrong reference for dom inspection
    Be the first to leave a con

    Sign up to add or upvote consMake informed product decisions

    What is Electron?

    With Electron, creating a desktop application for your company or idea is easy. Initially developed for GitHub's Atom editor, Electron has since been used to create applications by companies like Microsoft, Facebook, Slack, and Docker. The Electron framework lets you write cross-platform desktop applications using JavaScript, HTML and CSS. It is based on io.js and Chromium and is used in the Atom editor.

    What is Handlebars.js?

    Handlebars.js is an extension to the Mustache templating language created by Chris Wanstrath. Handlebars.js and Mustache are both logicless templating languages that keep the view and the code separated like we all know they should be.

    Need advice about which tool to choose?Ask the StackShare community!

    What companies use Electron?
    What companies use Handlebars.js?
    See which teams inside your own company are using Electron or Handlebars.js.
    Sign up for Private StackShareLearn More

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with Electron?
    What tools integrate with Handlebars.js?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    Blog Posts

    What are some alternatives to Electron and Handlebars.js?
    Photon
    The fastest way to build beautiful Electron apps using simple HTML and CSS. Underneath it all is Electron. Originally built for GitHub's Atom text editor, Electron is the easiest way to build cross-platform desktop applications.
    React Native Desktop
    Build OS X desktop apps using React Native.
    React Native
    React Native enables you to build world-class application experiences on native platforms using a consistent developer experience based on JavaScript and React. The focus of React Native is on developer efficiency across all the platforms you care about - learn once, write anywhere. Facebook uses React Native in multiple production apps and will continue investing in React Native.
    React
    Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project.
    JavaFX
    It is a set of graphics and media packages that enables developers to design, create, test, debug, and deploy rich client applications that operate consistently across diverse platforms.
    See all alternatives