Simple and flexible web framework

Write everything in QML and JavaScript

HTMLHTMLXML / JSONCSSJava
Script
QML with JavaScript
silk web server

HTML

import Silk.HTML 5.0

Html {
    Head { ... }
    Body {
        H1 { text: 'title' }
        P { text: '...' }
    }
}

XML

import Silk.XML 1.0

Tag {
    tagName: 'tag'
    text: 'text'
}

JSON

import Silk.JSON 1.0

Json {
    object: {
        'key': 'width'
        , 'value': 100
    }
}

CSS

import Silk.CSS 3.0

Css {
    Rule {
        selector: 'body'
        background_color: '0'
    }
    ...
}

Text

import Silk.Text 1.0

Text {
    text: 'Hello World!'
}

WebSocket

import Silk.WebSocket 1.0

WebSocket {
    onReady: accept()
    onMessage: send(message.data);
}