Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codedcontainer/html-generator
Automatically creates HTML
https://github.com/codedcontainer/html-generator
Last synced: 5 days ago
JSON representation
Automatically creates HTML
- Host: GitHub
- URL: https://github.com/codedcontainer/html-generator
- Owner: codedcontainer
- Created: 2019-06-30T21:42:02.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-03T20:58:51.000Z (almost 2 years ago)
- Last Synced: 2023-04-05T02:53:20.789Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 200 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# HTML Generator #
An application that is written with node.js and handlebars templates that automates the process of creating HTML. Uses HTML templates from Bootstrap (3 & 4) and generic templates.## How To Run ##
1. `npm install`
2. Use NPX to build `npx run build` or watch `npx run dev`
* `npm run dev` will copy hbs files into /build folder
3. Make sure to include "generatedHtml" folder in /build
4. View testData.json files for JSON input examples
5. Run the application see below examples## Templates ##
1. Bootstrap 3 & 4 Accordions
2. Generic HTML Table### Bootstrap Accordion HTML Builder ###
- Run node /build/index.js --help to view builders
- Type --help on a command to learn more about a builder## What I Have Learned ##
- Async/await functions and their return type
- awaiting on custom functions that return a promise
- ES6 compiling into ES5 using Babel
- Categorizing run code in package.json
- [Visual Studio intellisense with JSdoc](http://www.codedcontainer.com/visual-studio-code-javascript-intellisense-with-jsdoc/)
- Windows is picky about using both single and double quotes in your package.json scripts list instead you need to escape inside double quotes
- Yargs postional argument setting