A single page application (SPA) is a website or web
application that dynamically rewrites a current web page with
new data from a web server, instead of the default method of
a web browser loading entire new pages. Temple is capable of
creating reactive SPAs using Webpack and TypeScript.
First install the following Temple packages.
npm install --save-dev @ossph/temple @ossph/temple-loader
Then, install the following TypeScript packages.
npm install --save-dev @types/node ts-loader ts-node typescript
Then, install the following Webpack packages.
npm install --save-dev html-webpack-plugin webpack-dev-server webpack webpack-cli
Next create the following files and directories.