sdiemert / StarUMLJS

JavaScript code generation plugin for StarUML diagramming tool.
MIT License
56 stars 20 forks source link

Added RiotTagCodeGenerator #13

Closed PanJarda closed 8 years ago

PanJarda commented 8 years ago

I have created Riot.js tag CodeGenerator. Riot.js is javascript framework similar to React.js.

RiotTagCodeGenerator creates ".tag" file for every tag defined as class in UML model. Nested tags are supported via class inheritance.

Example

classdiagram1

component.tag:

require('./navbar.tag')
<component>
  <navbar/>

  this.state = null;

  /**
   */
  showNavbar() {
    //TODO: Implement Me 

  }

</component>

navbar.tag

<navbar>

  this.title = null;
</navbar>
sdiemert commented 8 years ago

Thanks for the PR. Looks like a good feature.