diff --git a/templates/textinput_dynamath.html b/templates/textinput_dynamath.html
new file mode 100644
index 0000000000..12021fe692
--- /dev/null
+++ b/templates/textinput_dynamath.html
@@ -0,0 +1,51 @@
+###
+### version of textline.html which does dynammic math
+###
+
+
+
+
+
+
+
+ % if state == 'unsubmitted':
+
+ % elif state == 'correct':
+
+ % elif state == 'incorrect':
+
+ % elif state == 'incomplete':
+
+ % endif
+
+
+ `{::}`
+
+
+
+
+##
+## javascript for dynamic math: add this math element to the MathJax rendering queue
+## also adds to global jaxset js array
+##
+
+
+ % if msg:
+
+ ${msg|n}
+ % endif
+