Uploaded image for project: 'Velocity'
  1. Velocity
  2. VELOCITY-904

Add a flag for better backward compatibility with null macro arguments

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1
    • Component/s: Engine
    • Labels:
      None

      Description

      See this comment :

      #macro(testmacro $parameter)
        $parameter
      #end
      
      #testmacro($return)
      

      which used to print "$return" (when $return is null or undefined) and we now get "$parameter".

       

        Attachments

          Activity

            People

            • Assignee:
              claude Claude Brisson
              Reporter:
              claude Claude Brisson
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: