$code.cloneTemplates

Clones templates from another application instance into the current one.
Syntax
    $code.cloneTemplates{app_instance_id}{user}{password}{template_list}
Documentation$code.cloneTemplates:
Clone templates from another application instance into the current one. This means that the specified source code plus the compiled version of the code is copied. This is faster then the $code.getTemplateSource/$code.setTemplateSource aequivalent because the source code doesn't need to be recompiled.
    Paramter:
      1: The foreign application instance id.
      2: Name of user with read access to the foreign templates.
      3: Password of user with read access to the foreign templates.
      2: Whitespace separated list of templates to clone.
    Returns:
      Void.
    Throws:
      IllegalArgumentException if both application instances are the same or if transactions interfere.
      SecurityException if access is denied or user/password are not valid.
Examples
$code.cloneTemplates{1017777287307}{root}{root}{/index /Test/test}
GroupCode
Minimum required transaction-mode:UPDATE
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters4
Maximum parameters 4