Files
complie-erlang/templates/port.tpl
T
2025-09-24 00:54:08 +08:00

12 lines
656 B
Smarty

%% ----------------------------------------------------------------------------------
{{if .desc}}%% {{hd .desc}} {{end}}
{template, {{.template}}, { {{.project}}, "{{hd .cmd}}", [
{{if .reconnect}} { reconnect_db, msg_start, [] },
{{end}} {{if .fun_id}}{ fun_open_check, check, [{{hd .fun_id}}] }, {{end}}
{{if .pre_message}} { pre_port, decode, [{{hd .pre_proto }}, {{hd .pre_message}}] }, {{end}}
{{if .reconnect}} { {{hd .module}}, {{hd .func}}, [{{join .args ","}}] },
{ reconnect_db, msg_end, [] } {{else}} { {{hd .module}}, {{hd .func}}, [] }
{{end}}
]}}.
%% -----------------------------------------------------------------------------------