How to use Master page in Electron Js Project

Viewed 313

I am creating a ElectronJs Project.

Here i want to create a master page where i can store header navigation and footer.

I have created a base.html file. Now i want all code of base.html in every page.

In PHP we can do with

include 'base.php';

I want to do just like that in ElectronJs.

1 Answers

Use one of the following JS web Frameworks and it will solve your problem it provide the dynamic components

  1. EJS EJS provide same as php include function
  2. Angular Use angular selector to include headers,footers etc like below

    <app-header></app-header>

  3. React JS

  4. VUE JS

let me know if its not clear , comment in commenbox i will explain.

Related