Mark sections of your Jinja templates as editable. The section name isrequired, it's used as the section label when editing and the key thatthe edits are stored under.

::

{% editable 'Section name' %} Python is a programming language that lets you work quickly and integrate systems more effectively. {% endeditable %}

**Important:**

There is no automatic detection of editable sections (yet). You have tovisit the URL that renders the template to register it as editable. Itwill not show up in the admin panel until it has been rendered with``render_template``.

Admin^^^^^

The Flask-Edits admin view is exposed by default at ``/edits``. The baseURL can be changed in the configuration:

::

app.config['EDITS_URL'] = '/edits'

**Note on security:**

Like Flask-Admin, Flask-Edits does not make any assumptions about theauthentication system you might be using. So, by default, the admininterface is completely open. Protect it behind basic auth or anotherform of authentication.

Editing^^^^^^^

All pages that have registered editable sections are available to editin the interface. At this time, only static HTML is supported. Supportfor Jinja2 is on the roadmap.

The `Summernote <http: hackerwins.github.io="" summernote=""/>`__ HTML editoris included but not used by default. To enable it:

::

app.config['EDITS_SUMMERNOTE'] = True

When a page is saved it instantly updates the Jinja context and writesto the JSON file on the server.

Within a page, multiple sections with the same name will only show uponce in the admin panel, but the edits will be applied to each section.

Clearing a section will revert it to the original content in thetemplate.

Previews^^^^^^^^

Preview mode is on by default. Edits will not show up on pages unless``?preview=true`` is passed in the URL. This allows for easy editingbefore content is live. Toggle the preview mode in the admin panel. Ifpreviews are turned off, edits become live as they are saved.

Preview mode can be toggled in the configuration. To turn off previewsby default: