Run Simple HTML5 Page with Maleo

Stavenn_Maleo
Foto by: By Stavenn (Own work) [CC BY-SA 3.0]
Retrived from here.

After maleo built and installed, lets run simple html5 page with Maleo. What we needs are two file. config.xml and index.html.

Lets do it:

  1. Create new folder for this app
     $ cd ~/src && mkdir hello && cd hello
  2. Create config.xml, fill this code
    $ vim config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <widget id="id.blankon.hello" version="1.0.0"
    xmlns="http://www.w3.org/ns/widgets"
    width="400"
    height="200">
    <name>Hello</name>
    <description>
    Hello
    </description>
    <content src="index.html"/>
    </widget>
  3. Create index.html with contain this code
    $ vim index.html
    <!DOCTYPE HTML>
    <html>
    <head><title>hello</title
    </head>
    <body>
    <center>
    <h2>Hello World! </h2><br/> <p>-maleo</p>
    </center>
    </body>
    </html>
  4. Test run it from maleo build folder.
    $ cd ~/src/maleo/build
    $ ./maleo ~/src/hello

Done!
Next step, run instagram and twitter with maleo.