https://github.com/primalzed/handlebars-poc
Proof of Concept generating html and css for a Roll20 character sheet from Handlebars templates and scss
https://github.com/primalzed/handlebars-poc
Last synced: 6 months ago
JSON representation
Proof of Concept generating html and css for a Roll20 character sheet from Handlebars templates and scss
- Host: GitHub
- URL: https://github.com/primalzed/handlebars-poc
- Owner: PrimalZed
- Created: 2020-04-03T00:49:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-05T17:58:44.000Z (over 3 years ago)
- Last Synced: 2025-06-12T11:54:09.595Z (about 1 year ago)
- Language: HTML
- Size: 175 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a proof of concept for generating an html file from a handlebars template.
The template files can be found in the `/src` folder. This contains several `*.handlebars` files:
* The primary `index.handlebars` template
* Three reference templates in the `/src/partials` folder:
* `dots.handlebars`
* `gt.handlebars`
* `worker.handlebars`.
To generate a `.html` sheet from these templates, perform the following steps:
1. Install [Node.js with npm](https://nodejs.org/) (choose the "LTS" version)
2. Open a command prompt scoped to the /handlebars-poc folder
3. Run command `npm install` in the command prompt.
4. Run command `npm run generate` in the command prompt.
Expected result: `simple-sheet.html` is generated in this folder.
(Steps 1 through 3 only have to be done once. Step 4 can be repeated after modifying the `.handlebars` template files.)