Skip to content

Latest commit

 

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Examples

Run the small flask app to see the examples on your browser @ http://127.0.0.1:8888/:

python3 tempy_examples.py

Links to each template code:

  • Simple examples

    • Hello World - It is what it seems, a complete html hello world page, whoa!
    • Passing content - Variables are good, let's use them!
    • Rendering lists - aka looping
    • Content injection - it's a bird, it's a context!
    • Simple conditional generation - We do what the code say
    • Static files - Pics or it didn't happen!
  • More complex examples

    • Star Wars character list - Load and show few Mb of data
    • A blog - A simple blog structure
    • Bootstrap - Can we? Yes we can!