GithubHelp home page GithubHelp logo

contemplativeradicals / blockly-html Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bwinf/blockly-html

0.0 1.0 0.0 581 KB

Blockly blocks and generators for HTML generation and demo with live preview

License: GNU General Public License v3.0

HTML 40.57% JavaScript 59.43%

blockly-html's Introduction

Blockly-HTML

Blockly blocks and generators for HTML generation and a demo with live preview.

The demo can be tested here: http://blocklyhtml.zgtm.de/

A German demo is available as well: http://htmlbausteine.zgtm.de/

Screenshot

Try the demo

The files blockly_compressed.js, blocks_compressed.js, javascript_compressed.js and msg/js/en.js of the Blockly repository need to be present in the directory blockly.

You can simply checkout the repository https://github.com/google/blockly or unzip https://github.com/google/blockly/archive/master.zip into the directory blockly. Or you can pick the files above manually to create an environment you can distribute without moving the whole Blockly source code around.

The demo saves the workspace in the local browser storage. Additionally, it supports importing and exporting blocks (Blockly XML) and exporting the HTML document.

A German localisation of the demo can be enabled by loading de.js instead of en.js in the header of the HTML file. (This also needs msg/js/de.js from Blockly.)

Library files

The files library_html.xml and library_html_german.xml are block libraries that can be used to modify the blocks using the Blockly developer tools: https://blockly-demo.appspot.com/static/demos/blockfactory/index.html

TODO

  • Support more HTML tags and attributes
  • Enforce HTML tag-nesting rules via types
  • Many more โ€ฆ

Further ideas

  • Maybe support generating other markup languages (Markdown, LaTeX)
  • Add script-tag and allow for standard Blockly blocks in there

blockly-html's People

Contributors

zgtm avatar robert-czechowski avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.