Generating Code Blockly Google Developers
Most Blockly applications need to turn blocks into code for execution. This page describes how to add a code generator to a custom block. First go to the generators/ directory and choose the subdirectory that corresponds to the language you want to generate (JavaScript Python PHP Lua Dart etc). Assuming your block(s) don't fit in the existing categories create a new JavaScript file.
Get Price