[
    {
        "name": "Teaser",
        "id": "Teaser",
        "schema": "template",
        "sourceCode": "<div>\n    {{text}}\n    <strong>only {{amount}} Euro</strong>\n</div>",
        "partials": {},
        "partialTemplates": {},
        "group": {
            "attributes": [
                {
                    "code": "amount",
                    "type": "number",
                    "editor": "number"
                },
                {
                    "code": "text",
                    "updateInterval": "100",
                    "height": "500px",
                    "plugins": [
                        {"name": "undo"},
                        {"name": "redo"},
                        {"name": "bold"},
                        {"name": "italic"},
                        {"name": "underline"},
                        {"name": "strikethrough"},
                        {"name": "subscript"},
                        {"name": "superscript"},
                        {"name": "removeFormat"},
                        {"name": "insertOrderedList"},
                        {"name": "insertUnorderedList"},
                        {"name": "insertHorizontalRule"},
                        {"name": "indent"},
                        {"name": "outdent"},
                        {"name": "justifyLeft"},
                        {"name": "justifyCenter"},
                        {"name": "justifyRight"},
                        {"name": "createLink"},
                        {"name": "dijit/_editor/plugins/FullScreen"},
                        {"name": "dijit/_editor/plugins/AlwaysShowToolbar"}
                    ],
                    "type": "string",
                    "editor": "richtext",
                    "defaultValue": ""
                }
            ],
            "editor": "listpane"
        }
    },
    {
        "name": "alert",
        "id": "alert",
        "schema": "template",
        "sourceCode": "<div class=\"alert alert-{{level}}\">{{{text}}}</div>",
        "partials": {},
        "partialTemplates": {},
        "group": {
            "groups": [
                {
                    "attributes": [
                        {
                            "code": "level",
                            "type": "string",
                            "values": [
                                {
                                    "label": "info",
                                    "value": "info"
                                },
                                {
                                    "label": "warning",
                                    "value": "warning"
                                },
                                {
                                    "label": "danger",
                                    "value": "danger"
                                },
                                {
                                    "label": "success",
                                    "value": "success"
                                }
                            ],
                            "editor": "select"
                        }
                    ],
                    "region": "top",
                    "editor": "listpane"
                },
                {
                    "attribute": {
                        "code": "text",
                        "updateInterval": "100",
                        "height": "500px",
                        "plugins": [
                            {"name": "undo"},
                            {"name": "redo"},
                            {"name": "bold"},
                            {"name": "italic"},
                            {"name": "underline"},
                            {"name": "strikethrough"},
                            {"name": "subscript"},
                            {"name": "superscript"},
                            {"name": "removeFormat"},
                            {"name": "insertOrderedList"},
                            {"name": "insertUnorderedList"},
                            {"name": "insertHorizontalRule"},
                            {"name": "indent"},
                            {"name": "outdent"},
                            {"name": "justifyLeft"},
                            {"name": "justifyCenter"},
                            {"name": "justifyRight"},
                            {"name": "createLink"},
                            {"name": "dijit/_editor/plugins/FullScreen"},
                            {"name": "dijit/_editor/plugins/AlwaysShowToolbar"}
                        ],
                        "type": "string",
                        "editor": "richtext",
                        "defaultValue": ""
                    },
                    "region": "center",
                    "editor": "single"
                }
            ],
            "editor": "verticalgroup",
            "type": "object",
            "code": "alert"
        }
    },
    {
        "name": "callout",
        "id": "callout",
        "schema": "template",
        "sourceCode": "<div class=\"callout {{level}}\">\n    <h4>{{headline}}</h4>\n    <p>{{{text}}}</p>\n</div>",
        "partials": {},
        "partialTemplates": {},
        "group": {
            "groups": [
                {
                    "attributes": [
                        {
                            "code": "level",
                            "type": "string",
                            "values": [
                                {
                                    "label": "info",
                                    "value": "info"
                                },
                                {
                                    "label": "warning",
                                    "value": "warning"
                                },
                                {
                                    "label": "success",
                                    "value": "success"
                                },
                                {
                                    "label": "danger",
                                    "value": "danger"
                                }
                            ],
                            "editor": "select"
                        },
                        {
                            "code": "headline",
                            "type": "string",
                            "editor": "string"
                        }
                    ],
                    "region": "top",
                    "editor": "columnsgroup"
                },
                {
                    "attribute": {
                        "code": "text",
                        "updateInterval": "100",
                        "height": "500px",
                        "plugins": [
                            {"name": "undo"},
                            {"name": "redo"},
                            {"name": "bold"},
                            {"name": "italic"},
                            {"name": "underline"},
                            {"name": "strikethrough"},
                            {"name": "subscript"},
                            {"name": "superscript"},
                            {"name": "removeFormat"},
                            {"name": "insertOrderedList"},
                            {"name": "insertUnorderedList"},
                            {"name": "insertHorizontalRule"},
                            {"name": "indent"},
                            {"name": "outdent"},
                            {"name": "justifyLeft"},
                            {"name": "justifyCenter"},
                            {"name": "justifyRight"},
                            {"name": "createLink"},
                            {"name": "dijit/_editor/plugins/FullScreen"},
                            {"name": "dijit/_editor/plugins/AlwaysShowToolbar"}
                        ],
                        "type": "string",
                        "editor": "richtext",
                        "defaultValue": ""
                    },
                    "region": "center",
                    "editor": "single"
                }
            ],
            "editor": "verticalgroup",
            "type": "object",
            "code": "callout"
        }
    },
    {
        "name": "chart",
        "id": "chart",
        "schema": "template",
        "sourceCode": "\n{{#store}}\nvar timeframe =\"{{rel}}_{{unitCount}}_{{units}}\";\nvar currentKeenChart = new Keen.Query(\"count\", {\n    eventCollection: \"{{collection}}\",\n    groupBy: \"{{groupBy}}\",\n    {{#if interval}}interval: \"{{interval}}\",{{/if}}\n    timeframe: {\n      start: \"2014-05-04T00:00:00.000Z\",\n      end: \"2014-05-05T00:00:00.000Z\"\n    }\n  });\n \n{{/store}}\nclient.draw(currentKeenChart, document.getElementById(\"{{elementId}}\"), {\n    chartType: \"{{design.chartType}}\",\n    title: '{{title }}',\n    height: '{{height}}',\n    width: '{{width}}',\n    chartOptions: {\n      chartArea: {\n        height: '{{chartAreaHeight}}',\n        left: '{{chartAreaLeft}}',\n        top: '{{chartAreaTop}}',\n        width: '{{chartAreaWidth}}'\n      },\n      bar: {\n        groupWidth: '{{design.barGroupWidth}}'\n      },\n      pieHole: '{{design.pieHole}}',\n      isStacked: {{#if stacked}}true{{else}}false{{/if}}\n    \n  }});\n  ",
        "partials": {},
        "partialTemplates": {},
        "group": {
            "groups": [
                {
                    "attributes": [
                        {
                            "code": "title",
                            "type": "string",
                            "editor": "string"
                        },
                        {
                            "code": "stacked",
                            "type": "boolean",
                            "editor": "boolean"
                        },
                        {
                            "code": "height",
                            "defaultValue": "250px",
                            "type": "string",
                            "editor": "string"
                        },
                        {
                            "code": "width",
                            "defaultValue": "auto",
                            "type": "string",
                            "editor": "string"
                        },
                        {
                            "code": "chartAreaLeft",
                            "defaultValue": "10%",
                            "type": "string",
                            "editor": "string"
                        },
                        {
                            "code": "chartAreaTop",
                            "defaultValue": "5%",
                            "type": "string",
                            "editor": "string"
                        },
                        {
                            "code": "chartAreaWidth",
                            "defaultValue": "60%",
                            "type": "string",
                            "editor": "string"
                        },
                        {
                            "code": "chartAreaHeight",
                            "defaultValue": "75%",
                            "type": "string",
                            "editor": "string"
                        }
                    ],
                    "label": "chart",
                    "editor": "columnsgroup"
                },
                {
                    "attributes": [
                        {
                            "code": "store",
                            "required": true,
                            "type": "object",
                            "group": {
                                "attributes": [
                                    {
                                        "code": "collection",
                                        "type": "string",
                                        "editor": "string"
                                    },
                                    {
                                        "code": "groupBy",
                                        "type": "string",
                                        "editor": "string"
                                    },
                                    {
                                        "code": "interval",
                                        "label": "interval",
                                        "defaultValue": "",
                                        "emptyValueLabel": "no interval",
                                        "type": "string",
                                        "values": [
                                            {
                                                "label": "hourly",
                                                "value": "hourly"
                                            }
                                        ],
                                        "editor": "select"
                                    }
                                ],
                                "editor": "listpane"
                            },
                            "editor": "object"
                        }
                    ],
                    "label": "store",
                    "editor": "listpane"
                },
                {
                    "attributes": [
                        {
                            "code": "design",
                            "required": true,
                            "typeProperty": "chartType",
                            "type": "object",
                            "groups": [
                                {
                                    "attributes": [],
                                    "editor": "listpane",
                                    "code": "areachart"
                                },
                                {
                                    "attributes": [
                                        {
                                            "code": "barGroupWidth",
                                            "type": "string",
                                            "editor": "string"
                                        }
                                    ],
                                    "editor": "listpane",
                                    "code": "columnchart"
                                },
                                {
                                    "attributes": [
                                        {
                                            "code": "pieHole",
                                            "type": "number",
                                            "editor": "number"
                                        }
                                    ],
                                    "editor": "listpane",
                                    "code": "piechart"
                                }
                            ],
                            "editor": "multi-object"
                        }
                    ],
                    "label": "design",
                    "editor": "listpane"
                }
            ],
            "editor": "tab"
        }
    },
    {
        "name": "keenStore",
        "id": "keenStore",
        "schema": "template",
        "sourceCode": "new Keen.Query(\"count\", {\n    eventCollection: {{collection}},//\"impressions\",\n    groupBy: {{groupBy}},//\"user.geo_info.country\",\n    interval: {{interval}},//\"hourly\",\n    timeframe: {\n      start: \"2014-05-04T00:00:00.000Z\",\n      end: \"2014-05-05T00:00:00.000Z\"\n    }\n  });",
        "partials": {},
        "partialTemplates": {},
        "group": {
            "attributes": [
                {
                    "code": "collection",
                    "type": "string",
                    "editor": "string"
                },
                {
                    "code": "groupBy",
                    "type": "string",
                    "editor": "string"
                },
                {
                    "code": "interval",
                    "required": true,
                    "defaultValue": "hourly",
                    "type": "string",
                    "values": [
                        {
                            "label": "hourly",
                            "value": "hourly"
                        }
                    ],
                    "editor": "select"
                }
            ],
            "editor": "listpane"
        }
    },
    {
        "name": "list of links",
        "id": "linklist",
        "schema": "template",
        "sourceCode": "<ul class=\"nav\">\n{{#links}}\n    <li><a href=\"{{link id}}\">{{name}}</a></li>\n{{/links}}\n</ul>",
        "partials": {},
        "partialTemplates": {},
        "group": {
            "attributes": [
                {
                    "code": "links",
                    "type": "array",
                    "element": {
                        "type": "multi-ref",
                        "idProperty": "id",
                        "searchProperty": "name",
                        "url": "page",
                        "usage": "data",
                        "typeProperty": "template",
                        "schemaUrlPrefix": "",
                        "schemas": [],
                        "editor": "multi-page-ref"
                    },
                    "editor": "primitive-array"
                }
            ],
            "editor": "listpane",
            "type": "object",
            "code": "linklist"
        }
    },
    {
        "name": "main",
        "id": "main",
        "description": "this template contains the header and footer for all pages. It should be included as template-ref with outer set to true.",
        "schema": "template",
        "sourceCode": "<!DOCTYPE html>\n<html lang=\"en\">\n  <head>\n    <meta charset=\"utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->\n    <title>{{title}}</title>\n\n    <!-- Bootstrap -->\n    <link href=\"bootstrap/dist/css/bootstrap.min.css\" rel=\"stylesheet\">\n    <link rel=\"stylesheet\" href=\"components-font-awesome/css/font-awesome.min.css\">\n    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->\n    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->\n    <!--[if lt IE 9]>\n      <script src=\"https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js\"></script>\n      <script src=\"https://oss.maxcdn.com/respond/1.4.2/respond.min.js\"></script>\n    <![endif]-->\n    <style>\n    #navigation .active {\n        text-decoration: underline;\n    }\n    .callout.info {\n        border-left-color: #31708f;\n    }\n    .callout.info h4 {\n        color: #31708f;\n    }\n    .callout.success {\n        border-left-color: #3c763d;\n    }\n    .callout.success h4{\n        color: #3c763d;\n    }\n    .callout.warning {\n      border-left-color: #8a6d3b;\n    }\n    .callout.warning h4{\n      color: #8a6d3b;\n    }\n    .callout.danger {\n      border-left-color: #a94442;\n    }\n    .callout.danger h4{\n      color: #a94442;\n    }\n    .callout {\n      padding: 20px;\n      margin: 20px 0;\n      border: 1px solid #eee;\n      border-left-width: 5px;\n      border-radius: 3px;\n    }\n    </style>\n  </head>\n  <body>\n    {{#navbar}}\n        {{>navbar selectedNavItem=../selectedNavItem}}\n    {{/navbar}}\n    {{#inner}}\n        {{>inner}}\n    {{/inner}}\n\n    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->\n    <script src=\"jquery/dist/jquery.min.js\"></script>\n    <!-- Include all compiled plugins (below), or include individual files as needed -->\n    <script src=\"bootstrap/dist/js/bootstrap.js\"></script>\n    <script src=\"gform-app/controller/mock.js\"></script>\n    <script>$('body').scrollspy({ target: '#navigation' })</script>\n\n  </body>\n</html>",
        "partials": {"navbar": 4},
        "partialTemplates": {},
        "group": {
            "attributes": [
                {
                    "code": "selectedNavItem",
                    "type": "string",
                    "editor": "string"
                },
                {
                    "code": "title",
                    "type": "string",
                    "editor": "string"
                }
            ],
            "editor": "listpane"
        }
    },
    {
        "name": "paragraph",
        "id": "paragraph",
        "schema": "template",
        "sourceCode": "<h1>{{{headline}}}</h1>\n<p>{{{text}}}</p>",
        "partials": {},
        "partialTemplates": {},
        "group": {
            "attribute": {
                "code": "text",
                "updateInterval": "100",
                "height": "500px",
                "plugins": [
                    {"name": "undo"},
                    {"name": "redo"},
                    {"name": "bold"},
                    {"name": "italic"},
                    {"name": "underline"},
                    {"name": "strikethrough"},
                    {"name": "subscript"},
                    {"name": "superscript"},
                    {"name": "removeFormat"},
                    {"name": "insertOrderedList"},
                    {"name": "insertUnorderedList"},
                    {"name": "insertHorizontalRule"},
                    {"name": "indent"},
                    {"name": "outdent"},
                    {"name": "justifyLeft"},
                    {"name": "justifyCenter"},
                    {"name": "justifyRight"},
                    {"name": "createLink"},
                    {"name": "dijit/_editor/plugins/FullScreen"},
                    {"name": "dijit/_editor/plugins/AlwaysShowToolbar"},
                    {"name": "dijit._editor.plugins.ViewSource"}
                ],
                "type": "string",
                "editor": "richtext",
                "defaultValue": ""
            },
            "editor": "single",
            "type": "object",
            "code": "paragraph"
        }
    },
    {
        "name": "tutorial",
        "id": "tutorial",
        "schema": "template",
        "sourceCode": "<!DOCTYPE html>\n<html lang=\"en\">\n  <head>\n    <meta charset=\"utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->\n    <title>{{title}}</title>\n\n    <!-- Bootstrap -->\n    <link href=\"bootstrap/dist/css/bootstrap.min.css\" rel=\"stylesheet\">\n    <link rel=\"stylesheet\" href=\"//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/default.min.css\">\n\n    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->\n    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->\n    <!--[if lt IE 9]>\n      <script src=\"https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js\"></script>\n      <script src=\"https://oss.maxcdn.com/respond/1.4.2/respond.min.js\"></script>\n    <![endif]-->\n    <style>\n    #navigation .active {\n        text-decoration: underline;\n    }\n    .callout.info {\n        border-left-color: #31708f;\n    }\n    .callout.info h4 {\n        color: #31708f;\n    }\n    .callout.success {\n        border-left-color: #3c763d;\n    }\n    .callout.success h4{\n        color: #3c763d;\n    }\n    .callout.warning {\n      border-left-color: #8a6d3b;\n    }\n    .callout.warning h4{\n      color: #8a6d3b;\n    }\n    .callout.danger {\n      border-left-color: #a94442;\n    }\n    .callout.danger h4{\n      color: #a94442;\n    }\n    .callout {\n      padding: 20px;\n      margin: 20px 0;\n      border: 1px solid #eee;\n      border-left-width: 5px;\n      border-radius: 3px;\n    }\n    .hljs {\n       background-color:#f5f5f5; \n    }\n    .tab-pane {\n        padding:10px;\n    }\n    .example {\n        margin-top:40px;\n        margin-bottom:40px;;\n    }\n    \n    </style>\n  </head>\n  <body>\n      <div class=\"container\">\n        <h3>{{inner.name}}</h3>\n        <p>\n            {{{text}}}\n        </p>\n        <hr/>\n        <div class=\"example\">\n            {{#inner}}\n            {{>inner}}\n            {{/inner}}\n        </div>\n    <div role=\"tabpanel\">  \n    <ul class=\"nav nav-tabs\">\n      <li role=\"presentation\" class=\"active\"><a href=\"#content\" data-toggle=\"tab\">render context</a></li>\n      <li role=\"presentation\"><a href=\"#template\" data-toggle=\"tab\">templates</a></li>\n    </ul>\n    <div class=\"tab-content\">\n        <div role=\"tabpanel\" class=\"tab-pane active\" id=\"content\">\n            <pre><code class=\"json\">{{debug inner}}</code></pre>\n        </div>\n        <div role=\"tabpanel\" class=\"tab-pane\" id=\"template\">\n            <pre><code class=\"handlebars\">{{__cms4apps__.partials.inner}}</code></pre>\n            {{#each __cms4apps__.partials}}\n                {{#if (equals @key \"inner\")}}\n                {{else}}\n                    {{@key}} \n                    <pre><code class=\"handlebars\">{{this}}</code></pre>\n                {{/if}}\n            {{/each}}\n        </div>\n    </div>\n    </div>\n    \n    <nav>\n      <ul class=\"pager\">\n        {{#previous}}\n        <li class=\"previous\"><a href=\"{{link id}}\"><span aria-hidden=\"true\">&larr;</span>{{name}}</a></li>\n        {{/previous}}\n        {{#next}}\n        <li class=\"next\"><a href=\"{{link id}}\">{{name}} <span aria-hidden=\"true\">&rarr;</span></a></li>\n        {{/next}}\n      </ul>\n    </nav>\n    \n        \n        \n    </div>\n\n    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->\n    <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js\"></script>\n    <!-- Include all compiled plugins (below), or include individual files as needed -->\n    <script src=\"bootstrap/dist/js/bootstrap.js\"></script>\n    <script src=\"gform-app/controller/mock.js\"></script>\n    <script src=\"//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js\"></script>\n    <script>hljs.initHighlightingOnLoad();</script>\n  </body>\n</html>\n\n\n",
        "partials": {},
        "partialTemplates": {},
        "group": {
            "attributes": [
                {
                    "code": "text",
                    "defaultValue": "",
                    "updateInterval": "100",
                    "height": "500px",
                    "plugins": [
                        {"name": "undo"},
                        {"name": "redo"},
                        {"name": "bold"},
                        {"name": "italic"},
                        {"name": "underline"},
                        {"name": "strikethrough"},
                        {"name": "subscript"},
                        {"name": "superscript"},
                        {"name": "removeFormat"},
                        {"name": "insertOrderedList"},
                        {"name": "insertUnorderedList"},
                        {"name": "insertHorizontalRule"},
                        {"name": "indent"},
                        {"name": "outdent"},
                        {"name": "justifyLeft"},
                        {"name": "justifyCenter"},
                        {"name": "justifyRight"},
                        {"name": "createLink"},
                        {"name": "dijit/_editor/plugins/FullScreen"},
                        {"name": "dijit/_editor/plugins/AlwaysShowToolbar"}
                    ],
                    "type": "string",
                    "editor": "richtext"
                },
                {
                    "code": "previous",
                    "type": "multi-ref",
                    "idProperty": "id",
                    "searchProperty": "name",
                    "url": "page",
                    "usage": "data",
                    "typeProperty": "template",
                    "schemas": [],
                    "editor": "multi-page-ref"
                },
                {
                    "code": "next",
                    "type": "multi-ref",
                    "idProperty": "id",
                    "searchProperty": "name",
                    "url": "page",
                    "usage": "data",
                    "typeProperty": "template",
                    "schemas": [],
                    "editor": "multi-page-ref"
                }
            ],
            "editor": "listpane"
        }
    },
    {
        "name": "xx",
        "id": "xx",
        "schema": "template",
        "sourceCode": null,
        "partials": {},
        "partialTemplates": {},
        "group": {
            "attributes": [],
            "editor": "listpane"
        }
    }
]
