예제 #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)