summaryrefslogtreecommitdiffstats
path: root/theme/templates/includes/book/exercise.html
diff options
context:
space:
mode:
Diffstat (limited to 'theme/templates/includes/book/exercise.html')
-rw-r--r--theme/templates/includes/book/exercise.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/theme/templates/includes/book/exercise.html b/theme/templates/includes/book/exercise.html
index fbf8505..faefbb7 100644
--- a/theme/templates/includes/book/exercise.html
+++ b/theme/templates/includes/book/exercise.html
@@ -16,6 +16,9 @@
<pre class="hidden code-solution">{{ section.code.solution }}</pre>
<pre class="hidden code-validation">{{ section.code.validation }}</pre>
+{% if section.code.context %}
+<pre class="hidden code-context">{{ section.code.context }}</pre>
+{% endif %}
<div class="btn-group btn-group-justified">
<a href="#" class="btn btn-default action-submit">Submit</a>