"""
This is a simple app setup script created with `render-engine -m createapp`
for more informaiton
"""

from render_engine import Site, Page, Collection

app = Site()
{% if output_path %}
app.output_path = "{{output_path}}" # custom output_path
{% endif %}
{% if static_path %}
app.static_path = "{{static_path}}" # custom static_path
{% endif %}

# Your site_vars will be used throughout your site
app.site_vars.update(
    SITE_TITLE="{{site_title}}",
    SITE_URL="{{site_url}}",
    {% if site_description %}SITE_DESCRIPTION={{site_desription}},{% endif %}
    {% if site_author %}SITE_AUTHOR={{site_author}},{% endif %}
    )

@app.page
class Index(Page):
    template = "index.html"

{% if not skip_collection %}
@app.collection
class Pages(Collection):
    {% if collection_path %}
    content_path = "{{collection_path}}" # path to content files
    {% else %}
    content_path = "pages" # path to content files
    {% endif %}
{% endif %}

if __name__ == "__main__":
    app.render()
