~fabrixxm/lesanaweb

3c0f46dd2e798d2d72cff5b692d5b653772323e6 — fabrixxm 1 year, 1 month ago 4dca7fe
Pass collection settings to entry template
2 files changed, 2 insertions(+), 1 deletions(-)

M README.md
M app.py
M README.md => README.md +1 -0
@@ 42,6 42,7 @@ as fallback.
`entry.html` template will get this vars in context:

- `entry` : `lesana.collection.Entry` object
- `settings` : collection settings

### Routes


M app.py => app.py +1 -1
@@ 64,7 64,7 @@ def entry(eid):
        ))
    entry = entries[0]

    return render_template('entry.html', entry=entry)
    return render_template('entry.html', entry=entry, settings=collection.settings)


@app.route('/', methods=['GET'])