from webalchemy import server
from todomvc import AppTodoMvc as app

if __name__ == '__main__':
    server.generate_static(app)
if __name__ == '__main__':
    from webalchemy import server
    from webalchemy.examples.todomvc.todomvc import AppTodoMvc as app
    server.generate_static(app, writefile='todomvc.html', main_html_file_path='static/template/index.html')

Exemple #3
0
import sys
import os

PACKAGE_PARENT = '../../'
SCRIPT_DIR = os.path.dirname(os.path.realpath(os.path.join(os.getcwd(), os.path.expanduser(__file__))))
sys.path.append(os.path.normpath(os.path.join(SCRIPT_DIR, PACKAGE_PARENT)))


from webalchemy import server
from three_d_earth import ThreeDEarth as app

if __name__ == '__main__':

    server.generate_static(app, writefile='webglearth.html')
Exemple #4
0
import sys
import os

PACKAGE_PARENT = '../../'
SCRIPT_DIR = os.path.dirname(os.path.realpath(os.path.join(os.getcwd(), os.path.expanduser(__file__))))
sys.path.append(os.path.normpath(os.path.join(SCRIPT_DIR, PACKAGE_PARENT)))

from webalchemy import server
from todomvc import AppTodoMvc as app


if __name__ == '__main__':
    server.generate_static(app, writefile='todomvc.html')