Skip to content

Pre-rendering

Pre-release
Pre-release
Compare
Choose a tag to compare
@Artur- Artur- released this 29 Jun 07:46

New features

  • Pre-rendering of the initial view
    • Enables search engines to index the application
    • Shows the view to the end user before any JavaScript has been loaded and initialized
  • Support for testing pre-rendering through ?prerender=only/no
  • Stylesheets are immediately loaded. Previously the client engine was started before loading any dependencies.
  • Possibility to override how the error view is created by using the RouterConfiguration.setErrorHandler method.

Fixes

  • All special characters are now correctly encoded when sent to the client.
  • Template parsing is now case sensitive
    • Binding to camelCase properties in a template now works
    • Binding to camelCase class names in a template now works
  • Element.getAttribute("style") and Element.getStyle() works correctly for template elements
  • Previous inline styles are correctly cleared when using Element.setAttribute("style","...")
  • Boolean attributes are correctly rendered as attr instead of attr=""
  • Overridable methods in ViewRenderer get more context for making decisions and avoiding to calculate the same values multiple times.

Demos

No demo updates this time.

Tutorials

No tutorial updates this time.

All changes

https://github.com/vaadin/hummingbird/issues?q=milestone%3A0.0.12