html5 is a HTML5-DOM library that has been written in Python.
This library serves as a toolkit for writing DOM-oriented web-apps using the Python programming language.
The most prominent software completely established on this library is ViUR vi, the visual administration interface for ViUR-based applications.
Let's create a simple game app!
import html5, pyjd class game(html5.Div): def __init__(self, *args, **kwargs): super(game, self).__init__() self.sinkEvent("onChange") self.fromHTML( """ <label> Your Name: <input [name]="myInput" type="text" placeholder="Name"> </label> <h1>Hello <span [name]="mySpan" class="name">Enter Name</span>!</h1> """) def onChange(self, event): if html5.utils.doesEventHitWidgetOrChildren(event, self.myInput): self.mySpan.removeAllChildren() self.mySpan.appendChild(self.myInput["value"]) if __name__ == '__main__': pyjd.setup() html5.Body().appendChild(game()) pyjd.run()
Just compile it with
$ pyjsbuild game.py
We take a great interest in your opinion about ViUR. We appreciate your feedback and are looking forward to hear about your ideas. Share your visions or questions with us and participate in ongoing discussions.
ViUR is developed and maintained by Mausbrand Informationssysteme GmbH, from Dortmund in Germany. We are a software company consisting of young, enthusiastic software developers, designers and social media experts, working on exciting projects for different kinds of customers. All of our newer projects are implemented with ViUR, from tiny web-pages to huge company intranets with hundreds of users.
Help of any kind to extend and improve or enhance this project in any kind or way is always appreciated.
Copyright (C) 2012-2019 by Mausbrand Informationssysteme GmbH.
Mausbrand and ViUR are registered trademarks of Mausbrand Informationssysteme GmbH.
You may use, modify and distribute this software under the terms and conditions of the GNU Lesser General Public License (LGPL). See the file LICENSE provided within this package for more information.