Uploaded image for project: 'NorthernWind'
  1. NorthernWind
  2. NW-52

Add support for custom macros

Attach ScreenshotClone
    XMLWordPrintable

    Details

    • Type: New feature (RFE)
    • Status: Effort estimate ready
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 1.1-ALPHA-48
    • Component/s: None
    • Labels:
      None

      Description

      We're referring to macros that don't require any Java code, but get expanded to text. For instance

      $photo(id='id', caption='caption')$

      get expanded to a complex thing such as

      <div class="foobar">
      <img src="/some/path/$id$.jpg" alt="$caption$"/>
      <p class="caption">$caption$</a>
      </div>

      The body should be defined in a document, the formal arguments declared as properties. They could be placed under /content/document/macros (not under /content/library since they are not served as they are).

        Attachments

          Activity

            People

            • Assignee:
              fabrizio.giudici Fabrizio Giudici
              Reporter:
              fabrizio.giudici Fabrizio Giudici
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: