Skip to content

Server Name Template Examples

Callum Jones edited this page Oct 4, 2019 · 3 revisions

Server name templates make use of golang's templating language.

Default

{{ .ServerName }} - {{ .EventName }}

Alternative

{{ .ServerName }} | {{ .EventName }}

Advanced

You can use any of the elements inside the CurrentRaceConfig struct and the GlobalServerConfig struct (click the links for details).

For example:

{{ .Track }} {{ with .TrackLayout }}({{ . }}){{ end }} - an event hosted by {{ .ServerName }}

Would show the following for an event at laguna seca:

ks_laguna_seca - an event hosted by Assetto Server Manager

Another example is:

{{ .ServerName }} - {{ .EventName }} {{ if eq .RaceExtraLap 1 }}This server will force you to drive another lap at the end of the race!{{ end }}