This is a set of Meteor packages which wraps Google Blockly.
blockly:blockly
is the main and core package, it includes the blockly core. But only blockly "itself", without common blocks, code generators, etc.
You can use core blocks by adding blockly:blocks
, which includes commonly used blocks such as repeat n do ...
, if ... do ...
.
By adding blockly:javascript
, you'll be able to use the JavaScript code generator, which can turn your workspace into actual JavaScript code. Same for Python, Dart and PHP.
- Clone the repo, make sure to use --recursive
git clone --recursive https://github.com/adrianliaw/meteor-blockly
- Link the package to your local testing meteor app
ln -s {/path/to/this}/blockly {/path/to/testing/app}/packages/blockly:blockly
I hope this package can take advantage of Blaze, wrap the original API, create reusable Blaze templates.