-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplugin.page
41 lines (29 loc) · 1.12 KB
/
plugin.page
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
To use the clafer plugin, write your clafer model inside clafer code blocks. A clafer code block looks like this
````
```clafer
(Your clafer mdoel goes here)
```
````
or this
````
```{.clafer}
(Your clafer model goes here)
```
````
You can also use ~ instead of ` to create a code block. Ensure that each code block is separated by any outside text by at least one blank line. You can add graphs, statistics and links to the source file in your wiki page. To do this, add .graph, .stats or .links to the code block, in addition to the .clafer, like so:
````
```{.clafer .graph .stats}
```
````
You can combine as many as you like in one code block. Additionally, .summary is a shorthand for .graph .stats .links.
````
```{.clafer .summary}
```
````
is equivalent to
````
```{.clafer .graph .stats .links}
```
````
Each code block is treated as a separate fragment of one model. All code blocks on one page are collected together and compiled as one model. Therefore, each code block starts with a top-level definition, and each top-level definition must be contained in only one code block.
For an example, see [Clafer Wiki Test Suite]()