Module cuttlefish_partial

Data Types

emitted_term()

emitted_term() = {mapping, string(), string(), [proplists:property()]} | {validator, string(), string(), fun((term()) -> boolean())} | {translation, string(), fun((cuttlefish_conf:conf()) -> term())}

include_opt()

include_opt() = {prefix, string()} | {app_prefix, string()} | {exclude, [string()]} | {overrides, [{string(), proplists:property()}]} | {disable_with, atom()}

partial_term()

partial_term() = {mapping, string(), string(), [proplists:property()]} | {validator, string(), string(), fun((term()) -> boolean())} | {partial_translation, string(), fun((cuttlefish_conf:conf(), string(), string()) -> term())}

Function Index

bind_translation/3
is_partial_filename/1
load/3
rewrite/2

Function Details

bind_translation/3

bind_translation(Fun3, ConfPrefix::string(), AppPrefix::string()) -> fun((cuttlefish_conf:conf()) -> term())

is_partial_filename/1

is_partial_filename(Filename::file:filename_all()) -> boolean()

load/3

load(App::atom(), Name::string(), IncludeOpts::[include_opt()]) -> {ok, [emitted_term()]} | cuttlefish_error:error()

rewrite/2

rewrite(Terms::[partial_term()], IncludeOpts::[include_opt()]) -> {ok, [emitted_term()]} | cuttlefish_error:error()


Generated by EDoc