-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample.json
executable file
·32 lines (32 loc) · 956 Bytes
/
sample.json
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
{
"title": "Sample Lesson Plan",
"entities": [
{
"rel": [
"item"
],
"title": "Lesson 1",
"class": [
"lesson"
],
"properties": {
"explanation": "This is an exceptionally simple Modelica model.\n",
"model": "Real x = 5.0 \"A variable declaration and equation\";"
}
},
{
"rel": [
"item"
],
"title": "Slightly More Complex Case",
"class": [
"lesson"
],
"properties": {
"model": "Real x = 20.0;\nReal y;\n\nequation\n\ny = sin(time);",
"preamble": "{% macro commentary(now) %}\n\nOur solution for $x$ was {{ now.x }} and our solution for $y$ depends on time. Currently, $t={{ now.time.toFixed(2) }}$ which means that $y={{ now.y.toFixed(2) }}$.\n\n{% endmacro %}\n",
"report": "{{ commentary(now) }}\n\n_(Note: you can change the value of time by using the slider above.)_\n"
}
}
]
}