1.7.4.12 patsubst(Pattern, Src, Substitutions)

-spec patsubst(filename_pattern(),
               file:filename_all(),
               template_vars()) -> file:filename_all().

A special version of ‘template/3’ for manipulating file names. It automatically adds the following substitutions:

Example:

patsubst("${profile}/ebin/${basename}.beam", "src/foo.erl", #{profile => <<"debug">>}) ->
   <<"debug/ebin/foo.beam">>
JavaScript license information