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

Page engine improvements #518

Closed
wants to merge 8 commits into from

Conversation

flongo
Copy link
Collaborator

@flongo flongo commented May 29, 2013

Each commit represents a small improvement on the page engine layer.

… simpler

Two methods have been added to class aria.pageEngine.pageProviders.BasePageProvider: processSiteConfig and processPageDefinition. They are called, respectively, before sending the site configuration and page definitions back to the page engine.

This makes it possible to extend the BasePageProvider class by only implementing those two methods.
…sh-based navigation

When "navigation" is set to "hash" in the site configuration, the title of the page (specified in the page definition) is used to change the title of the document.
This was previously done only in history-based navigation
Tests for the PageEngine class are no longer template tests.
The navigation manager of the page engine was rejecting empty strings from the cache in which url-to-pageId map was stored.
This implied that, when navigating back to a page whose url is an empty string, the page engine was unable to infer the pageId and display the correct page.

Close ariatemplates#520
…e site configuration

Navigation managers used both for hash and for history-based navigations in the page engine rely on local storage browser capabilities to store the associations between urls and pageId's. The saved data is needed in order to identify the right page after hard page reload or when hitting back after an external navigation.
Before this code change, the storage could not be configured. Now it can be deactivated, provided with a specific suffix for local storage key and with an expiration delay for its entries.
flongo added a commit that referenced this pull request Jun 5, 2013
flongo added a commit that referenced this pull request Jun 5, 2013
Two methods have been added to class aria.pageEngine.pageProviders.BasePageProvider: processSiteConfig and processPageDefinition. They are called, respectively, before sending the site configuration and page definitions back to the page engine.

This makes it possible to extend the BasePageProvider class by only implementing those two methods.
flongo added a commit that referenced this pull request Jun 5, 2013
…gation

When "navigation" is set to "hash" in the site configuration, the title of the page (specified in the page definition) is used to change the title of the document.
This was previously done only in history-based navigation
flongo added a commit that referenced this pull request Jun 5, 2013
Tests for the PageEngine class are no longer template tests.
flongo added a commit that referenced this pull request Jun 5, 2013
…uration

Navigation managers used both for hash and for history-based navigations in the page engine rely on local storage browser capabilities to store the associations between urls and pageId's. The saved data is needed in order to identify the right page after hard page reload or when hitting back after an external navigation.
Before this code change, the storage could not be configured. Now it can be deactivated, provided with a specific suffix for local storage key and with an expiration delay for its entries.
flongo added a commit that referenced this pull request Jun 5, 2013
@piuccio
Copy link
Contributor

piuccio commented Jun 5, 2013

All commits have been pushed to master 😉

@piuccio piuccio closed this Jun 5, 2013
@flongo flongo deleted the pageEngine_improvements branch January 24, 2014 12:42
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