2 from mako.template import Template
4 with open('bloggers.yml') as f:
5 users = yaml.safe_load(f.read())
11 for (un, rec) in users.items():
14 u.links = rec['links']
15 u.start = rec['start']
19 return (u.start, u.username)
21 all.sort(key=user_key)
23 tmpl = Template(filename='templates/iron-blogger.tmpl', output_encoding='utf-8')
24 print tmpl.render(users=all)