--- /dev/null
+<div class="exercise.choice">
+ <div class="p"></div>
+ <div class="list">
+ <div class="item.answer" answer="true"></div>
+ </div>
+</div>
\ No newline at end of file
'use strict';
var _ = require('libs/underscore'),
- orderExerciseTemplate = require('libs/text!./order.xml');
+ templates = {
+ order: require('libs/text!./order.xml'),
+ choice: require('libs/text!./choice.xml'),
+ 'choice.single': require('libs/text!./choiceSingle.xml'),
+ 'choice.true-or-false': require('libs/text!./choiceTrueOrFalse.xml'),
+ gap: require('libs/text!./gaps.xml'),
+ replace: require('libs/text!./replace.xml')
+ };
var Item = function(node, exerciseNode) {
Object.defineProperty(this, 'text', {
methods: {
edumedCreateExerciseNode: function(klass) {
void(klass);
- return this.createDocumentNode(orderExerciseTemplate);
+ return this.createDocumentNode(templates[klass]);
}
}
};