5.11.1.1.3.1.6. exampleSnippetToCreateSpecialServiceClassName.ftl

Listing 5.98 examples/exampleSnippetToCreateSpecialServiceClassName.ftl
1<#--stop if arg1 is null-->
2<#if !(arg1)??>  <#stop "arg1 (model object name) not found in context" ></#if>
3
4<#--best practice: assign argument to a variable with a name that represents its contents -->
5<#assign modelObjectName = arg1/>
6
7${modelObjectName}SpecialService