Imagine this scenerio. There is this time in in your working team when you're trying to figurying out how to make HTML<->AST converter, built in order to handle object representation of HTML, applicable with the framework configuration. One person from your team has written the first part of this converter, which converts HTML to AST. You're responsible for reverse this process.
Create module which exports function convertASTToString. As a parameter function should take object representation of HTML fraction (Abstract Syntax Tree). Output should returns fraction of the HTML converted to string.
- HTML5
- CSS3
- Javascript
-
Clone this repo
https://github.com/aibolem/AST-to-HTML-Converter.git
-
Make sure you have Node.js with npm from nodejs.org or via nvm | n
-
Install parcel bundler :
npm install -g parcel-bundler
- Localize your directory with project and run following command :
parcel index.html
-
Open website on localhost with index.html file displayed.
-
Have fun! 😎