Skip to content

Commit

Permalink
Fixed imports for Content
Browse files Browse the repository at this point in the history
before : in cmd
Traceback (most recent call last):
  File "star_wars.py", line 6, in <module>
    B()(Content('name')),
NameError: name 'Content' is not defined
 
After :
<!DOCTYPE HTML>
<html>
        <head>
                <title>Flaskr - SW</title></head>
        <body>
                <div class="page">All the Star Wars characters!
                        <br/>
                </div></body>
</html>
  • Loading branch information
Jai2305 authored Aug 27, 2021
1 parent e029bf3 commit d318a81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/templates/star_wars.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from tempy.tags import *
from tempy.elements import *

from tempy.content import Content
character = Div(klass='chr')(
B()(Content('name')),
P()('height:', Content('height')),
Expand Down Expand Up @@ -31,3 +31,4 @@
)
)
)
#print(page.render(pretty=True))

0 comments on commit d318a81

Please sign in to comment.