SI539 Assignment 06 - Templates
Due Date: Friday October 28, 2011 - 11:55 PM
This assignment will merge your results from
the CSS Blocks and Accessibility assignment
into a Google App Engine webapp using the template
techniques from Chapter 6.
If you like, you can start this assignment by downloading the sample applications from www.appenginelearn.com
and starting with the ae-05-templates application.
If you start with that application, you should not have
to change any of the Python code. You should be able
to accomplish the assignment working in the templates
and static folders.
Your application
needs to have the same functionality as the example application
but the content should be your own. Also your pages should have
a different color scheme than in these screen shots.
The general steps for this assignment include:
- If you don't use ae-05-templates, add code to app.yaml
to route static urls to the static folder.
- Add the template rendering code to your index.py
- Put your CSS and image files in the static folder and subfolders.
- Put all of your HTML files in the templates folders and change
the image and CSS references to include "/static/".
- Test your application to make sure that all the pages work
properly.
- Make a copy of one of your files (i.e. index.htm) as _base.htm.
Edit _base.htm to add the block directive.
- Edit all of your other htm files to remove the head and
navigation instead use the extend pattern.
- Test your application to make sure that all the pages work
properly.
- Modify your _base.htm to make sure that the class="selected"
only appears on the current page.
- Test your application
When you are done, your screens will look the same as in the HTML/CSS
assignment except that everything will be coming from your App Engine
Application.
Turn in the Following For Credit
Please turn in the following screenshots into CTools.
- Screenshots of three of your pages rendered in a browser showing at least
two pages where the coloring is different for the navigation links and the files coming
from localhost.
- Your index.py, _base.htm, index.htm and one other template file from your site.
www.appenginelearn.com