Skip to content
Snippets Groups Projects
Commit 489175ed authored by David Rouquet's avatar David Rouquet
Browse files

modify to work with the new quiz.js. Comments are now at the root

parent 6374f029
No related branches found
No related tags found
1 merge request!4Main
......@@ -12,7 +12,13 @@ template mt:quiz(?quiz) {
"{"
box {
st:call-template(mt:qcu, ?quiz)
st:call-template(mt:json_in_ttl, ?quiz)
st:call-template(mt:qcm, ?quiz)
#st:call-template(mt:json_in_ttl, ?quiz)
}
"}"
}
']'
}
# Optional correct/incorrect comments for the quiz.
# Unfortunately, STTL doesn't have a concise syntax for blocks
# that depend on a variable being bound, we have to use
......@@ -27,11 +33,6 @@ template mt:quiz(?quiz) {
mt:sep(),
mt:json_escape(?incorrect_comment)
), "")
}
"}"
}
']'
}
'}'
st:nl()
}
......@@ -49,5 +50,4 @@ where {
# which creates multiple matches for the WHERE clause and thus duplicate files.
# We'll have to deal with them at some point, but for now just filter the first
# one arbitrarily to avoid messing with the output.
limit 1
LIMIT 1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment