Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

WSO2 Carbon UUF 1.0.0-M4

Pre-release
Pre-release
Compare
Choose a tag to compare
@this this released this 01 May 20:04

We are happy to announce the fourth milestone release of WSO2 Unified UI Framework.
In this release, we support,

  • Following Handlebars helpers.
    {{css "/css/my-styles.css"}}
    {{headerJs "/js/my-top-script.js"}}
    {{footerJs "/js/my-bottom-script.js"}}
    {{public "/img/my-photo.jpg}}
    {{headerTitle "Settings | Store"}}
    {{#headerOther}} ... {{/headerOther}}
  • Following variables are accessible in Handlebars temlates.
    @app.context - Application context e.g. "/pets-store"
    @uriParams - URI parameters e.g. /pets-store/pets/{id}
    @params - Only for fragments. Passed parameters when including the fragment e.g. {{includeFragment "f1" param1="a" param2="b"}}
  • Following variables are accessible via the context parameters of the onRequest JS function.
    context.app.context - Application context e.g. "/pets-store"
    context.uriParams - URI parameters e.g. /pets-store/pets/{id}
    context.request - Current request as a io.netty.handler.codec.http.HttpRequest object.
  • Server-side JS scripts are executes in OSGi mode.
  • Carbon UUF Maven Plugin is used to build samples.