Skip to content
Snippets Groups Projects
Commit c7c0f2ec authored by Eliott Sammier's avatar Eliott Sammier
Browse files

Add back quiz.json

parent 6c0c435f
Branches
No related tags found
No related merge requests found
......@@ -20,10 +20,9 @@ template mt:activite(?act) {
# ?weight
# ?desc
# }
# # Insert a Hugo shortcode to load the quiz if this is a quiz activity
# if (exists { ?act a :Exercice }, "\n{{< quiz >}}", "")
# "%%%%%%%"
# st:call-template(mt:quiz,?act)
# Insert a Hugo shortcode to load the quiz if this is a quiz activity
if (exists { ?act a :Exercice }, "\n{{< quiz >}}", "")
st:call-template(mt:quiz, ?act)
}
where {
?act a :Activite .
......
......@@ -4,6 +4,7 @@ PREFIX st: <http://ns.inria.fr/sparql-template/>
template mt:quiz(?quiz) {
st:nl()
mt:start_marker(?quiz) "/quiz.json" st:nl()
'{'
box {
'"elements": ['
......@@ -17,6 +18,7 @@ template mt:quiz(?quiz) {
']'
}
'}'
st:nl()
}
where {
?quiz a :Exercice
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment