HTML extension for Yellicode
Generate HTML code using powerful TypeScript code generation templates! This extension contains a code writer and other utilities that make is easier to generate HTML code from a Yellicode template.
Yellicode lets you build your own code generation templates with TypeScript. It consists of a Node.js CLI and extensible APIs, making it easy for developers to create, share and re-use code generators for their favorite programming languages and frameworks.
Check out our website for more.
Using the HTML package
In order to run a code generation template, you must have the CLI installed (@yellicode/cli) globally and have a valid codegenconfig.json file in your working directory. Please refer to the installation instructions and the quick start for more.
You should also have the @yellicode/model package installed in your working directory:
npm install @yellicode/model --save-dev
Open a terminal/command prompt in your working directory and install this package as a dev dependency:
npm install @yellicode/html --save-dev
This basic example generates a HTML file containing a Bootstrap form for each class in the model. For a more advanced example with Angular support, check out the Yellicode bookstore tutorial.
;;;/*** Generates the contents of a Bootstrap form-group for the provided property.*//*** Generates a Bootstrap form for the provided model Class.*/Generator.getModel.then
For all HtmlWriter functions and options, check out the API documentation.