Print4JS - Demo 7: Print with Handlebar4Code

Demo extends the Handlebars4Code demo with Print4JS. With the Load JSON Button users can upload a JSON Source into the textarea JSON. JSON as input for Handelbars4Code was generated with ClassEditorUML. The JSON file is used together with a template to generate output files with Handlebars4Code. With the select box you can apply different templates to the source JSON file. If you want to create your own JSON editor, you can use JSON2Schema.


The library Print4JS is a A tiny javascript library to help printing from the web.. The source code of Print4JS can be downloaded as ZIP-file print4js.zip

JSON Input:

Output of Print4JS -



Print4JS uses the following Template for Handlebars (readonly)

<< Demo Applications with Print4JS
Git Sources Print4JS - Download Print4JS ZIP
Version: 1.0.61 Date: 2019/10/09 0:02:16 Author: Rodrigo Vieira