- We use the jinja2 templating engine which uses the liquid templating language.
- Shopify has a handy little cheat sheet with most of the liquid templating syntax.
- Front end is the actual html, css and js that is used to make the website look like something nice.
- Currently the MaterializeCSS framework is used.
- Other front end frameworks can be added,
- Just add them to the
templates/_includes/head.html
file and the rest of the pages that use the base template will also have them ready.
- Just add them to the
- Static files do not perform any backend action, instead they are static content.
- This folder contains html that is to be imported by templates, the head, navbar and scripts for the frontend frameworks are stored here.
-
This folder contains all of the templates that relate to displaying announcements for the general public
-
display.html
- This file has the basic display that is to be iframed
-
print.html
- Template for creating a easily printable view
-
read.html
- The template that is the read announcements button
-
- Templates that relate admin related tasks
templates/manage/manage.html
- Displays all of the users, invite code generation, user removal for admin links only.
- Templates that
- Contains all of the scripts that pertain to the backend of the webapp.
- Contains all of the apps that are used to display and handle get and post requests.
- Scripts that are imported by apps that can handle multiple things, some store constants.
- Contains some variables that are used across multiple different scripts
- Contains the function that is used for submissions
poster(self, new = True):
takes in the self which is the
-
Main contains the primary Handler class which has uses the webapp2.RequestHandler class
-
class Handler():
-
respondToJson(self, json_data):
- requires json data (in dictionary from)
- sends json data to client
-
write(self, *a, **kw):
- basic without templating response to a get request in plain text.
-
render_str(self, template, **params)
- renders a template with the optional params
- the params are passed to the template
- renders a template with the optional params
-
-