userRegion
Define a region in the generated text where users may write customized code.
The tag must contain a single 'initialCode' tag. Content before the initialCode tag is considered a 'begin marker', while content after it is considered an
'end marker'. During execution, the existing file is searched for the begin and end markers. If found, the content of the user region tag is replaced with
the content found in the existing file. If the markers are not found (or the file does not exist), then the markers, along with the content of the initialCode
tag are written.
Tag Summary |
required |
<c:userRegion>
content to be written
</c:userRegion>
|
full tag |
<c:userRegion>
content to be written
</c:userRegion>
|
Example |
|
<%-- Define user region 101. Code in block will never be updated by subsequent executions --%>
<c:userRegion>
// BEGIN region 101
<c:initialCode>
default code
</c:initialCode>
// END region 101
</c:userRegion>
<%-- Define user region 102. Code in block will be updated by subsequent
executions only if @generated is found in block --%>
<c:userRegion>
// BEGIN region 102
<c:initialCode unmodifiedMarker="@generated">
// @generated
default code
</c:initialCode>
// END region 102
</c:userRegion>
|