Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-3064

Use TemplateLoader to load ftl templates

    XMLWordPrintable

Details

    Description

      Freemarker provides a mechanism to load templates from different sources named Template Loaders. Basically can be used URLTemplateLoader and ClassTemplateLoader to achieve the same behaviour provided in AbstractFormDispatcher but it gives an important feature to make possible to import different templates. For example:
      <#import "common_task.ftl" as common/>
      <@common.tasktemplate/>

      This feature improve template reusability and use of generic macros.

      Some other features can be achieved as template caching.

      Attachments

        Activity

          People

            swiderski.maciej Maciej Swiderski (Inactive)
            cnicolai@redhat.com Cristiano Nicolai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: