chore: update readme (#6471)

* chore: update readme

* chore: fix readme
This commit is contained in:
Beka Westberg
2022-10-04 10:13:52 -07:00
committed by GitHub
parent 2bf8c42035
commit f7b42b3ee4

View File

@@ -49,16 +49,16 @@ import * as Blockly from 'blockly/core';
#### Blockly built in blocks
```js
import 'blockly/blocks';
import * as libraryBlocks from 'blockly/blocks';
```
#### Blockly Generators
If your application needs to generate code from the Blockly blocks, you'll want to include a generator.
```js
import 'blockly/python';
import {pythonGenerator} from 'blockly/python';
```
to include the Python generator, you can also import ``blockly/javascript``, ``blockly/php``, ``blockly/dart`` and ``blockly/lua``.
to include the Python generator. You can also import `{javascriptGenerator} from 'blockly/javascript'`, `{phpGenerator} from 'blockly/php'`, `{dartGenerator} from 'blockly/dart'` and `{luaGenerator} from 'blockly/lua'`.
#### Blockly Languages