diff --git a/guacamole/.gitignore b/guacamole/.gitignore
index c352b3795..1b2666e16 100644
--- a/guacamole/.gitignore
+++ b/guacamole/.gitignore
@@ -1,3 +1,4 @@
src/main/webapp/META-INF/
+src/main/webapp/generated/
target/
*~
diff --git a/guacamole/pom.xml b/guacamole/pom.xml
index ff75a224e..e6c736606 100644
--- a/guacamole/pom.xml
+++ b/guacamole/pom.xml
@@ -97,6 +97,27 @@
+
+
+ com.keithbranton.mojo
+ angular-maven-plugin
+ 0.3.2
+
+
+ generate-resources
+
+ html2js
+
+
+
+
+ ${basedir}/src/main/webapp/app/
+ **/*.html
+ ${basedir}/src/main/webapp/generated/templates-main/templates.js
+ app
+
+
+
com.samaxes.maven
@@ -146,6 +167,7 @@
app/**/*.js
+ generated/**/*.js
diff --git a/guacamole/src/main/webapp/app/index/indexModule.js b/guacamole/src/main/webapp/app/index/indexModule.js
index 99fb457fa..8d30eaa9e 100644
--- a/guacamole/src/main/webapp/app/index/indexModule.js
+++ b/guacamole/src/main/webapp/app/index/indexModule.js
@@ -35,5 +35,6 @@ angular.module('index', [
'notification',
'pascalprecht.translate',
'rest',
- 'settings'
+ 'settings',
+ 'templates-main'
]);