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

use a template for the root node #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

PhilippSpo
Copy link

developers are able to replace the standard root template with their own template (via aldeed:template-extension), which adds support for transitions of the whole layout. This is used by the momentum-flow-router package to enable developers to get fullpage transitions - which are crucial on mobile - working easily.

developers are able to replace the standard root template with their own template (via aldeed:template-extension), which adds support for transitions of the whole layout. This is used by the momentum-flow-router package to enable developers to get fullpage transitions - which are crucial on mobile - working easily.
@PhilippSpo
Copy link
Author

The problem with the tests is, that the layout now does not get rerendered (since Blaze.render is not called), but the contents of the layout that have changed rerender.

@mitar
Copy link
Contributor

mitar commented Oct 18, 2015

I do not think you need a code change for this. You can probably do something like:

<template name="rootTemplate">
  <div id="__blaze-root"></div>
</template>

<body>
  {{> rootTemplate}}
</body>
BlazeLayout.setRoot('#__blaze-root');

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