June 2019
Beginner to intermediate
770 pages
19h 24m
English
We'll show you the template-rendering process next. In order to see how the rendering works, here's some sample data:
travel_x = Blog_x("Travel")travel_x.append( Post( date=datetime.datetime(2013, 11, 14, 17, 25), title="Hard Aground", rst_text="""Some embarrassing revelation. Including ☹ and ⚓""", tags=["#RedRanger", "#Whitby42", "#ICW"], ))travel_x.append( Post( date=datetime.datetime(2013, 11, 18, 15, 30), title="Anchor Follies", rst_text="""Some witty epigram. Including < & > characters.""", tags=["#RedRanger", "#Whitby42", "#Mistakes"], ))
We've serialized the Blog and Post objects in the form of Python code. This can be a nice way to represent the blog. There are some use cases where Python code is a perfectly ...
Read now
Unlock full access