I started working the madlib page. When I was done I wanted the python file to be small, and not have all the html codes in there.
Well I learned that the open('nameofthefile.tpl', 'r').read()
can be used to open the story you have in a different file, this made everything much easier for me and for everyone in class. We can now style the pages to your own liking.It does not necessarily have to end in
.tpl
it can be anything suck as .html
but I find it more helpful to save it as that.
No comments:
Post a Comment