JUMLY is a JavaScript library, UML diagram rendering engine. Using JUMLY, you can easily embed stylish UML diagrams on your HTML document. You need nothing to use JUMLY except for modern browser.
@found "You", ->
@message "Think", ->
@message "Write your idea", "JUMLY", ->
@create "Diagram"
Let's say you already have a document. In case you put a sequence diagram into it, put next four lines in your <head>.
<link href='https://jumly.herokuapp.com/release/jumly.min.css' rel='stylesheet'/> <script src='http://code.jquery.com/jquery-2.0.2.min.js'></script> <script src='http://coffeescript.org/extras/coffee-script.js'></script> <script src='https://jumly.herokuapp.com/release/jumly.min.js'></script>
Then, put a next <script> element into the place where you want to put at.
<script type='text/jumly+sequence'> @found "You", -> @message "get", "JUMLY" </script>
That's all. It's easy, isn't it?
You'll get the above one there. To get it, you only write just eight-lines. It's certainly that you can add another or more diagrams.
Here is a HTML file for one of simplest examples. Take a look at the source.
Robustness diagram is coming soon. Actually, I'm considering the DSL and layout logic now...
@actor "User" :-> @view "Browser" @view "Browser" :-> @controller "Server" @controller "Server" :-> @entity "Database"
@found "User", ->
@message "search", "Browser", ->
@create asynchronous:"connection", "Web Server"
@message "GET", "Web Server", ->
@message "find the resource", -> @reply ""
@reply "", "User"
@found "You", ->
@alt
"[found]": ->
@loop ->
@message "request", "HTTP Server"
@note "NOTE: This doesn't make sense :)"
"[missing]": ->
@message "new", "HTTP Session"
@ref "respond resource"
@found "Browser", ->
@message "http request", "HTTP Server", ->
@create "HTTP Session", ->
@message "init"
@message "aquire lock", "Database"
@message "do something"
@message "release lock", "Database"
@reply "", "Browser"
@found "Browser", ->
@alt {
"[200]": -> @message "GET href resources", "HTTP Server"
"[301]": -> @ref "GET the moved page"
"[404]": -> @ref "show NOT FOUND"
}
@find(".ref").css(width:256, "padding-bottom":4)
.find(".tag").css float:"left"
get_the_moved_page.css "background-color":"#80c080"
show_not_found.css "background-color":"#f0b0b0"
JUMLY is tested on jQuery 2.0.2 and CoffeeScript 1.6.3, and they or later are recommended on you.
WebKit-base browser like Google Chrome and Safari, Gecko-base browser like Firefox, or Opera are recommended. Internet Explorer has never been tested.
JUMLY v0.1.4 is under MIT license.
Perhapse, license for newer versions may be changed to another one in the future.
In that case, you can still use old version's JUMLY with MIT license.
This site utilizes Google Analytics (GA) and provides first party cookie of GA to your browser. I just only use the data, which is collected by GA, in order to improve the contents, accessibility, usability and readability of this site. And also about the data, I never disclose and use it for another purpose.