brianchandotcom/liferay-portal — pull request #10217 by tinatian (2013-04-09 06:31:59+00:00)
Title: Lps 32110 Add macro.ftl, recommit.

Hi Brian,

I did not understand you comment on https://github.com/brianchandotcom/liferay-portal/pull/10077#issuecomment-15818141.

I checked all the definition of macro methods, the params are sorted.

For example, the order of params in

<@insertDDMContent
_ddmStorageLinkId = counter.get()
_ddmStructureId = ddmStructure.structureId
_entry = ddlRecord
_currentIndex = ddlRecordCount />

is same as its macro definition:

<#macro insertDDMContent
_ddmStorageLinkId
_ddmStructureId
_entry
_currentIndex = -1>

_currentIndex is the last one because "parameters without a default value must all occur before the parameters with default values".

Tina.