diff --git a/SAS/TMSS/src/CMakeLists.txt b/SAS/TMSS/src/CMakeLists.txt
index bbdc727acc2349b2088f58895e8f4785309c2962..fd5a8389a74c27f43c3def1fadb5a87813d9212f 100644
--- a/SAS/TMSS/src/CMakeLists.txt
+++ b/SAS/TMSS/src/CMakeLists.txt
@@ -36,3 +36,4 @@ lofar_add_bin_scripts(migrate_momdb_to_tmss.py)
 lofar_add_docker_files(Dockerfile-tmss)
 
 add_subdirectory(tmss)
+add_subdirectory(templates)
diff --git a/SAS/TMSS/src/templates/CMakeLists.txt b/SAS/TMSS/src/templates/CMakeLists.txt
new file mode 100644
index 0000000000000000000000000000000000000000..f9bad3202d61419814c3857778c4d6900d74e556
--- /dev/null
+++ b/SAS/TMSS/src/templates/CMakeLists.txt
@@ -0,0 +1,7 @@
+set(_template_files
+  josdejong_jsoneditor_widget.html)
+
+python_install(${_template_files}
+  DESTINATION lofar/sas/tmss/templates)
+
+add_subdirectory(rest_framework)
diff --git a/SAS/TMSS/src/templates/rest_framework/CMakeLists.txt b/SAS/TMSS/src/templates/rest_framework/CMakeLists.txt
new file mode 100644
index 0000000000000000000000000000000000000000..9b8a613d8ce88fa1ed844c18143f74b4656e9b9d
--- /dev/null
+++ b/SAS/TMSS/src/templates/rest_framework/CMakeLists.txt
@@ -0,0 +1,5 @@
+set(_template_files
+  api.html)
+
+python_install(${_template_files}
+  DESTINATION lofar/sas/tmss/templates/rest_framework)