apostrophe
Version:
Apostrophe is a user-friendly content management system. This core module of Apostrophe provides rich content editing and essential facilities to integrate Apostrophe into your Express project. Apostrophe also includes simple facilities for storing your r
12 lines (11 loc) • 651 B
HTML
<div {% if options.edit %}data-editable {% if not options.virtual %}data-save{% endif %}{% endif %} class="{% if options.edit %}apos-area-editable{% endif %} apos-area" {% if not options.virtual %}data-slug="{{ options.slug }}"{% endif %} data-options='{{ options | jsonAttribute({ single: "true" }) }}' id="{{ id }}">
<div class="apos-normal-view">
<div class="apos-content">{{ aposAreaContent(area.items, options) }}</div>
</div>
</div>
{%- if options.virtual -%}
{# Provide a way for frontend code to know this virtual area is here #}
<script type="text/javascript">
apos.emit('newArea', {{ id | json }});
</script>
{%- endif -%}