27 lines
1.6 KiB
XML
27 lines
1.6 KiB
XML
<templateSet group="JavaScript">
|
|
<template name="params" value="{ 'name': '$NAME$', 'type': TYPES.VarChar, 'value': data.$NAME$, }$END$" description="" toReformat="false" toShortenFQNames="true">
|
|
<variable name="NAME" expression="complete()" defaultValue="" alwaysStopAt="true" />
|
|
<context>
|
|
<option name="JAVA_SCRIPT" value="true" />
|
|
</context>
|
|
</template>
|
|
<template name="paramn" value="{ 'name': '$NAME$', 'type': TYPES.Int, 'value': $OBJECT$.$NAME$, }$END$" description="" toReformat="false" toShortenFQNames="true">
|
|
<variable name="NAME" expression="" defaultValue="" alwaysStopAt="true" />
|
|
<variable name="OBJECT" expression="jsSuggestVariableName()" defaultValue="data" alwaysStopAt="true" />
|
|
<context>
|
|
<option name="JAVA_SCRIPT" value="true" />
|
|
</context>
|
|
</template>
|
|
<template name="targetsource" value="[Target].$VAL$=[Source].$VAL$,$END$" description="Target to Source" toReformat="false" toShortenFQNames="true">
|
|
<variable name="VAL" expression="" defaultValue="" alwaysStopAt="true" />
|
|
<context>
|
|
<option name="JAVA_SCRIPT" value="true" />
|
|
</context>
|
|
</template>
|
|
<template name="importlog" value="import { newLogger } from '../helpers/logger'; const log = newLogger('$NAME$'); $END$" description="Import log" toReformat="false" toShortenFQNames="true">
|
|
<variable name="NAME" expression="fileNameWithoutExtension()" defaultValue="" alwaysStopAt="true" />
|
|
<context>
|
|
<option name="JAVA_SCRIPT" value="true" />
|
|
</context>
|
|
</template>
|
|
</templateSet> |