Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: f6db0b8a0e
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (18 sloc) 0.51 kb
-module({{appid}}).
-export([welcome/0, get_version/0]).
welcome() ->
io:format("{{appid}} ~s has started.~n", [get_version()]).
get_version() ->
Releases = release_handler:which_releases(),
Version = case [V || {"{{appid}}", V, _, current} <- Releases] of
[] ->
case [V || {"{{appid}}", V, _, permanent} <- Releases] of
[] ->
"dev";
[Permanent] ->
Permanent
end;
[Current] ->
Current
end,
list_to_binary(Version).
Jump to Line
Something went wrong with that request. Please try again.