示例#1
0
文件: webapp.py 项目: russiancow/stag
def template(content):
    return render(
        html(
            head(title("Test web app"), script(src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js")),
            body(navigation(), h1("Greetings, comrade!"), div({"id": "content"}, content)),
        )
    )
示例#2
0
def template(content):
    return render(
        html(
            head(
                title("Test web app"),
                script(
                    src=
                    "//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"
                )),
            body(navigation(), h1("Greetings, comrade!"),
                 div({'id': 'content'}, content))))
示例#3
0
def render_basic(tag):
    return render(tag)
示例#4
0
文件: tests.py 项目: russiancow/stag
def render_basic(tag):
    return render(tag)