mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
chore: update readme (#6471)
* chore: update readme * chore: fix readme
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user