CityGenerator / Megacosm-Generator

A tool for creating fantasy campaign settings, including maps, regions, flags, cities, NPCs, businesses, legends, lore and more.
GNU General Public License v2.0
70 stars 31 forks source link

Refactor jinja inputs and templates #46

Closed morgajel closed 10 years ago

morgajel commented 10 years ago

rather than using

return render_template('wanted.html', wanted=wanted )

do something more generic, like

return render_template('wanted.html', tempobject=wanted )

This will give me flexibility on includes- for example,

<ul>
{%for field in  tempobject.__dict__ %}
    <li>{{field}}  {{tempobject[field]}}</li>
{%endfor%}
</ul>
morgajel commented 10 years ago

c57961a..0fcec74 completed.