3 from mako.template import Template
5 with open('bloggers.yml') as f:
6 users = yaml.safe_load(f.read())
12 for (un, rec) in users.items():
15 u.links = rec['links']
16 u.start = rec['start']
20 return (u.start, u.username)
22 all.sort(key=user_key)
24 tmpl = Template(filename='templates/iron-blogger.tmpl', output_encoding='utf-8')
25 print tmpl.render(users=all)