Use jinja templates, reorganize file structure.