client/gulpfile.js
changeset 147 89f19425c580
parent 117 41a78460bdac
child 149 8e117699857a
--- a/client/gulpfile.js	Tue Jun 09 19:10:45 2015 +0200
+++ b/client/gulpfile.js	Tue Jun 09 19:11:44 2015 +0200
@@ -4,7 +4,7 @@
 var mainBowerFiles = require('main-bower-files');
 var htmlreplace = require('gulp-html-replace');
 
-var templateFolder = './../server/src/ammico';
+var templatesFolder = './../server/src/ammico/templates';
 var staticFolder = './../server/src/ammico/static/ammico';
 var buildFolder = './build';
 
@@ -164,7 +164,11 @@
                 src: 'logo_IRI_footer.png',
                 tpl: '<img src="{% static \'ammico/img/%s\' %}" alt="Logo IRI" />'
             },
-            token: '{% if token %} token: "{{ token }}", {% endif %}'
+            idExpo: 'idExpo: "{{ context.idExpo }}",',
+            ammicoUrl: 'ammicoUrl: "{{ context.ammicoUrl }}",',
+            searchUrl: 'searchUrl: "{{ context.searchUrl }}",',
+            token: '{% if context.token %} token: "{{ context.token }}", {% endif %}'
         }))
-    .pipe(gulp.dest(templateFolder+'/templates'));
+        .pipe(plugins.rename('indexAmmico.html'))
+        .pipe(gulp.dest(templatesFolder));
 });