antosdk-apps/About/coffees/main.coffee
2018-04-14 15:52:19 +00:00

14 lines
440 B
CoffeeScript

class About extends this.OS.GUI.BaseApplication
constructor: ( args ) ->
super "About", args
main: () ->
me = @
@container = @find "container"
"os://README.md".asFileHandler().read (txt) ->
converter = new showdown.Converter()
($ me.container).html converter.makeHtml txt
About.singleton = true
About.dependencies = [ "showdown.min" ]
this.OS.register "About", About