var site = {};
site.url = "{{settings.URL}}";
site.name = "{{settings.SITENAME}}";
site.id = "{{settings.SITEID}}";
site.pages = {};
{% for page in pages %}
site.pages['{{page.name}}'] = '{{page.body|escapejs}}';
{% endfor %}