electron-handlebars
Use Handlebars instead of plain HTML for your Electron app!
Usage
In your main process JavaScript:
const app BrowserWindow = ; // Template bindings go here! title: 'Hello, World!' body: 'The quick brown fox jumps over the lazy dog.'; let mainWindow = null; app; app;
And in index.hbs
(or whatever other file you are loading with loadURL
):
{{ title }} {{ title }} {{ body }}
Example App
There is a complete (albeit small) working example app in the example
directory. You can run it from root directory with the following:
npm inpm start
Similar Projects
This library was inspired by the following:
License
MIT