OHIF-149 The viewer shall allow the root URL to be changed - WIP

- Use absoluteUrl for hard-coded paths in html and js
This commit is contained in:
Evren Ozkan committed 2017-01-10 13:09:43 -05:00
1 parent a91894c42d
commit 76ebe11c8e
20 files changed
+42 -31

No files matched your search

@@ -1,3 +1,4 @@
import { Meteor } from 'meteor/meteor';
import { Template } from 'meteor/templating';
import { Session } from 'meteor/session';
import { ReactiveVar } from 'meteor/reactive-var';
@@ -6,6 +7,11 @@ import { ReactiveVar } from 'meteor/reactive-var';
* Global Blaze UI helpers to work with Blaze
*/
// Return the absolute url
Template.registerHelper('absoluteUrl', path => {
return Meteor.absoluteUrl(path);
});
// Return the current template instance
Template.registerHelper('instance', () => {
return Template.instance();