Velocity
  1. Velocity
  2. VELOCITY-457

documentation mistake? order of Velocimacros in template

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Invalid
    • Affects Version/s: 1.4
    • Fix Version/s: 1.5
    • Component/s: Documentation
    • Labels:
      None

      Description

      from mailing list.
      (need to confirm)

      ---------- Forwarded message ----------
      From: sun davy <aweisw@hotmail.com>
      Date: Sep 11, 2006 3:51 AM
      Subject: i encounter some mistakes in User Guide.
      To: velocity-user@jakarta.apache.org

      hi Velocity team:
      I am an user of Velocity from China. Thanks for your perfect production.
      Through your creative and hard work, we have such Convenience and Powerful
      tools in our toolbox.

      ...

      3) Velocimacro Trivia
      Currently, Velocimacros must be defined before they are first used in a
      template. This means that your #macro() declarations should come before
      using the Velocimacros.

      i defined VM after they are first used in a template, it also work. i
      don't know why.

        Activity

        Hide
        Will Glass-Husain added a comment -

        it has to do with caching. The macro is never loaded the first time, but if the page is cached will be available the second time the page is rendered.

        Show
        Will Glass-Husain added a comment - it has to do with caching. The macro is never loaded the first time, but if the page is cached will be available the second time the page is rendered.

          People

          • Assignee:
            Unassigned
            Reporter:
            Will Glass-Husain
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development