Waffle
  1. Waffle
  2. WAFFLE-67

Add Waffle FTL functions and macros

    Details

    • Type: New Feature New Feature
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.1
    • Component/s: Resources
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Add collection of utility FTL (Freemarker Template Language) functions and macros which are of general use.

        Activity

        Hide
        Mauro Talevi added a comment -

        Added resource ftl/waffle.ftl which is automatically added to webapp along with other resources when declaring waffle-resources as webapp dependency (see examples/pom.xml for configuration details).

        To use simply declare import statement at top of FTL:
        <#import "/ftl/waffle.ftl" as w>

        See examples/freemarker-example for details of use of Waffle FTL macros.

        Show
        Mauro Talevi added a comment - Added resource ftl/waffle.ftl which is automatically added to webapp along with other resources when declaring waffle-resources as webapp dependency (see examples/pom.xml for configuration details). To use simply declare import statement at top of FTL: <#import "/ftl/waffle.ftl" as w> See examples/freemarker-example for details of use of Waffle FTL macros.
        Hide
        Mauro Talevi added a comment -

        Moved ftl/waffle.ftl to ftl/waffle/form.ftl to allow the possibility of non-form related FTL libraries.

        Show
        Mauro Talevi added a comment - Moved ftl/waffle.ftl to ftl/waffle/form.ftl to allow the possibility of non-form related FTL libraries.
        Hide
        Mauro Talevi added a comment -

        Added ftl/validation.ftl containing validation macros.

        Show
        Mauro Talevi added a comment - Added ftl/validation.ftl containing validation macros.

          People

          • Assignee:
            Mauro Talevi
            Reporter:
            Mauro Talevi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: