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

Add back quiz.json

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