Merge branch 'develop' of https://source.jalview.org/git/jalview.git into develop
[jalview.git] / examples / biojson-doc / templates / signature.html
1 {{!
2  Copyright 2013 Laurent Bovet (laurent.bovet@windmaster.ch)
3
4  Licensed under the Apache License, Version 2.0 (the "License");
5  you may not use this file except in compliance with the License.
6  You may obtain a copy of the License at
7
8  http://www.apache.org/licenses/LICENSE-2.0
9
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 }}
16 {{#if keyword}}
17     <span class="type-keyword">{{keyword}}{{range schema.minItems schema.maxItems 0 "" false false ".."}}</span>
18     {{#each schemas}}
19         <span class="type-keyword">{{enum this}}</span>
20         {{#simple this}}
21             <span class="signature-type-{{__type}}">
22                 {{__type}}
23             </span>
24             <span class="type-keyword">
25                 {{range minLength maxLength "" "" false false ".."}}{{range minimum maximum "-∞" "∞" exclusiveMinimum exclusiveMaximum ";"}}
26             </span>
27         {{/simple}}
28         {{#complex this}}
29             {{#box this}}
30                 <span boxid="{{boxId}}" class="box-{{boxId}} signature-type-{{__type}} signature-button signature-type-expandable button">{{__type}}</span>
31             {{/box}}
32         {{/complex}}
33         {{#ref this}}
34             {{#box this}}
35                 <span boxid="{{boxId}}" class="box-{{boxId}} signature-type-ref signature-button signature-type-expandable button">{{__name}}</span>
36             {{/box}}
37         {{/ref}}
38         {{#if pattern}}
39             <span class="type-pattern">/{{pattern}}/</span>
40         {{/if}}
41         {{#if enum}}
42             {{#each enum}}
43                 <span class="type-enum">{{this}}</span>
44             {{/each}}
45         {{/if}}
46         {{#exists default}}
47             <span class="type-keyword">default</span>
48             <span class="type-default">{{__default}}</span>
49         {{/exists}}
50     {{/each}}
51 {{/if}}
52 {{#unless keyword}}
53     {{#each schemas}}
54         <span class="type-keyword">{{enum this}}</span>
55         {{#primitive this}}
56            <span class="signature-type-{{__type}}">
57                {{__type}}
58             </span>
59             <span class="type-keyword">
60                {{range minLength maxLength "" "" false false ".."}}{{range minimum maximum "-∞" "∞" exclusiveMinimum exclusiveMaximum ";"}}
61             </span>
62         {{/primitive}}
63         {{#ref this}}
64             {{#box this}}
65                 <span boxid="{{boxId}}" class="box-{{boxId}} signature-type-ref signature-button signature-type-expandable button">{{__name}}</span>
66             {{/box}}
67         {{/ref}}
68         {{#obj this}}
69             {{#box this}}
70                 <span boxid="{{boxId}}" class="box-{{boxId}} signature-type-{{__type}} signature-button signature-type-expandable button">{{__type}}</span>
71             {{/box}}
72         {{/obj}}
73         {{#if pattern}}
74             <span class="type-pattern">/{{pattern}}/</span>
75         {{/if}}
76         {{#if enum}}
77             {{#each enum}}
78                 <span class="type-enum">{{this}}</span>
79             {{/each}}
80         {{/if}}
81         {{#exists default}}
82             <span class="type-keyword">default</span>
83             <span class="type-default">{{__default}}</span>
84         {{/exists}}
85     {{/each}}
86 {{/unless}}