X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=examples%2Fbiojson-doc%2Ftemplates%2Fsignature.html;fp=examples%2Fbiojson-doc%2Ftemplates%2Fsignature.html;h=8412dbc23efc911dae21c77a9c28579da6aea833;hb=1ba05544b34253204ef6410017a179c31fe5e23d;hp=0000000000000000000000000000000000000000;hpb=f8ce78dc02ce9d96129fcc4882749f43869928ff;p=jalview.git
diff --git a/examples/biojson-doc/templates/signature.html b/examples/biojson-doc/templates/signature.html
new file mode 100755
index 0000000..8412dbc
--- /dev/null
+++ b/examples/biojson-doc/templates/signature.html
@@ -0,0 +1,86 @@
+{{!
+ Copyright 2013 Laurent Bovet (laurent.bovet@windmaster.ch)
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+}}
+{{#if keyword}}
+ {{keyword}}{{range schema.minItems schema.maxItems 0 "" false false ".."}}
+ {{#each schemas}}
+ {{enum this}}
+ {{#simple this}}
+
+ {{__type}}
+
+
+ {{range minLength maxLength "" "" false false ".."}}{{range minimum maximum "-â" "â" exclusiveMinimum exclusiveMaximum ";"}}
+
+ {{/simple}}
+ {{#complex this}}
+ {{#box this}}
+ {{__type}}
+ {{/box}}
+ {{/complex}}
+ {{#ref this}}
+ {{#box this}}
+ {{__name}}
+ {{/box}}
+ {{/ref}}
+ {{#if pattern}}
+ /{{pattern}}/
+ {{/if}}
+ {{#if enum}}
+ {{#each enum}}
+ {{this}}
+ {{/each}}
+ {{/if}}
+ {{#exists default}}
+ default
+ {{__default}}
+ {{/exists}}
+ {{/each}}
+{{/if}}
+{{#unless keyword}}
+ {{#each schemas}}
+ {{enum this}}
+ {{#primitive this}}
+
+ {{__type}}
+
+
+ {{range minLength maxLength "" "" false false ".."}}{{range minimum maximum "-â" "â" exclusiveMinimum exclusiveMaximum ";"}}
+
+ {{/primitive}}
+ {{#ref this}}
+ {{#box this}}
+ {{__name}}
+ {{/box}}
+ {{/ref}}
+ {{#obj this}}
+ {{#box this}}
+ {{__type}}
+ {{/box}}
+ {{/obj}}
+ {{#if pattern}}
+ /{{pattern}}/
+ {{/if}}
+ {{#if enum}}
+ {{#each enum}}
+ {{this}}
+ {{/each}}
+ {{/if}}
+ {{#exists default}}
+ default
+ {{__default}}
+ {{/exists}}
+ {{/each}}
+{{/unless}}