Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GPT-518] dynamically register templates on browser client #429

Merged
merged 3 commits into from
Apr 5, 2017

Conversation

nickbalestra
Copy link
Contributor

@nickbalestra nickbalestra commented Mar 31, 2017

Now that we have registry supported templates exposed in context. We could imagine to use this to programmatically and dynamically configure the browser client to support them via the registerTemplate API.

@nickbalestra nickbalestra changed the title [WIP][GPT-518] dynamically register templates on browser client [GPT-518] dynamically register templates on browser client Apr 3, 2017
@nickbalestra nickbalestra force-pushed the GPT-518 branch 2 times, most recently from 72c012a to e80d827 Compare April 3, 2017 12:02
script(src=staticPath+"src/oc-client.min.js", type="text/javascript")
script.
oc.registerTemplates(!{JSON.stringify(templates)});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move to pre-config api with the usual client-side initialisation snippet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants