Knotx / knotx-example-project

Example Project contains samples of various Knot.x modules implementations and usages
https://knotx.io
Apache License 2.0
4 stars 12 forks source link

Feature/extract fallback mechanism #38

Closed tomaszmichalak closed 5 years ago

tomaszmichalak commented 5 years ago

It is related to https://github.com/Cognifide/knotx/pull/482.

Description

Adds fallback handler in the te-local-get operation processing. It configures both default and custom fallback messages.

Upgrade notes (if appropriate)

Add fallback handler configuration:

      {
        name = fallbackHandler
        config {
          defaultFallback = BLANK
          fallbacks = [
            {
              id = BLANK
              markup = "<h1>Default Fallback</h1><p>This is default fallback message.</p>"
            }
          ]
        }
      }

Types of changes

Checklist:


I hereby agree to the terms of the Knot.x Contributor License Agreement.