Put template settings on client side

This commit is contained in:
James Allen 2014-08-22 13:10:32 +01:00
parent c8ab1bd394
commit 0152f42416

View file

@ -59,12 +59,12 @@ html(itemscope, itemtype='http://schema.org/Product')
indexes:!{JSON.stringify(settings.algolia.indexes)}
}
- if (typeof(settings.apis) != "undefined" && typeof(settings.apis.templates_api) != "undefined")
- if (typeof(settings.templates) != "undefined")
script.
window.sharelatex.templates = {
user_id : '!{settings.apis.templates_api.user_id}',
cdnDomain : '!{settings.apis.templates_api.cdnDomain}',
indexName : '!{settings.apis.templates_api.indexName}'
user_id : '!{settings.templates.user_id}',
cdnDomain : '!{settings.templates.cdnDomain}',
indexName : '!{settings.templates.indexName}'
}
body