From 972950999144ad4f18fdd75bc9a6f2467a225e83 Mon Sep 17 00:00:00 2001 From: Harshad Sharma Date: Fri, 16 Jun 2017 21:23:54 +0530 Subject: [PATCH] Aha! :D --- examples/hello.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 examples/hello.py diff --git a/examples/hello.py b/examples/hello.py new file mode 100755 index 0000000..7a0f66a --- /dev/null +++ b/examples/hello.py @@ -0,0 +1,13 @@ +#!/usr/bin/env python +# coding=utf-8 + +from qutescript import userscript + + +@userscript +def hello_world(request): + request.send_to_browser('Hello, world!') + + +if __name__ == '__main__': + hello_world()