Storybook icon

Storybook

Use Storybook to preview your Freemarker or Thymeleaf templates and css

Screenshots

  • The Storybook preview generated from the "last-updated" parts story.

Speed up the feedback loop when developing server-rendered applications for Enonic XP! This application is used with Storybook Server to provide previews of your Freemarker or Thymeleaf templates. You can also pass in a string with Freemarker or Thymeleaf syntax as input for a story.

If you want to create a story for a layout or a page, you can also pass in components (that will be rendered in the correct regions). Thus you are able to create a composite story that accurately renders a complete webpage.

Releases

  1. 1.4.0

    • Fix failing inline templating for FreeMarker
    • Fix failing portal.processHtml function in FreeMarker
    • Compatibility:

      • 7.12.0
  2. 1.3.0

    • Use latest version of Freemarker (2.3.34)
    • Fix `localize` in Freemarker-preview when multiple baseDirPaths
    • Interpret the `ftlh` file extension as Freemarker
    • Add Storybook-compatible version of `PortalObject` where `localize` and `assetUrl` use the file system
    • Compatibility:

      • 7.12.0
  3. 1.2.0

    • Add support for deserializing `java.time.LocalDate`
    • Compatibility:

      • 7.12.0
  4. 1.1.1

    • Bug fix: undefined values prevent rendering
    • Compatibility:

      • 7.12.0
  5. 1.1.0

    • Support templates from libraries by allowing xpResourcesDirPath to be a comma separated list
    • Compatibility:

      • 7.12.0