# HG changeset patch # User rougeronj # Date 1433869904 -7200 # Node ID 89f19425c580ddcc598cd386f147c6c8ea20a18c # Parent c6fa8ee3f5625c0451696c0dbe9e24920bb2d8d2 add 4 parameters to init ammico app. These parameter are set from the ammico server thanks to the "context" diff -r c6fa8ee3f562 -r 89f19425c580 client/gulpfile.js --- 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: '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)); });