# You must use a tab-size of 4 spaces to edit this file.
---
author_name: Tribal Systems
copyright_info: © Tribal Limited
editions: Community, Pro, ProBusiness, Enterprise
start_running_on_install: false
license_info: 'Modified BSD License'
display_name: Twig Snippet
description: |
    <p>A Twig Snippet plugin allows a Zenario site to run server-side executable code.</p>
    <p>When a plugin is created and placed on a content item, and the content item is viewed, the Twig code in the Snippet is executed and the output is displayed on the page.</p>
    <p>Twig is a template engine for PHP. In essence, it supports a subset of the server-side PHP language and runs it in a Zenario-controlled environment.</p>
    <p>Read more about Twig at <a href="https://twig.symfony.com/" target="_blank">https://twig.symfony.com/</a>. Twig version 3 is supported.</p>
    <p>All regular Twig language constructs can be used in the code you specify, plus the Zenario-specific functions described on <a href="https://zenar.io/documentation-area/developer/core-functions/twig-functions-zenario-8?state=b" target="_blank">zenar.io</a>.</p>
category: pluggable
keywords: edit, twig, html

# Reminder: you need to increment the LATEST_REVISION_NO in this module's
# latest_revision_no.inc.php file if you change any of the fields below:
css_class_name: zenario_html_snippet
is_pluggable: true
can_be_version_controlled: false
nestable: true
default_instance_name: Untitled Twig Snippet
inheritance:
    inherit_settings_from_module: zenario_html_snippet

# Warning: adding a new dependency to an existing module will break any existing sites
# where the dependency is not running.
# You can fix this on a per-site basis by manually running the dependency, i.e. by running
#   UPDATE zenario_modules SET status = 'module_running' WHERE class_name = 'dependency'
# in MySQL and then going to /admin/ to apply database updates.
# If this is a core module, consider using runNewModuleDependency() in a 
# database-revision in zenario/admin/db_updates/step_4_migrate_the_data/plugins.inc.php
# to fix it automatically for every site.
dependencies:
    zenario_html_snippet: true