diff options
-rw-r--r-- | src/rebar_mustache.erl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rebar_mustache.erl b/src/rebar_mustache.erl index 375a591..eb82785 100644 --- a/src/rebar_mustache.erl +++ b/src/rebar_mustache.erl @@ -62,7 +62,11 @@ -opaque template() :: #?MODULE{}. %% @see parse_binary/1 %% @see parse_file/1 +-ifdef(namespaced_types). -type data() :: #{string() => data() | iodata() | fun((data(), function()) -> iodata())}. +-else. +-type data() :: dict(). +-endif. %% @see render/2 %% @see compile/2 -type partial() :: {partial, {state(), EndTag :: binary(), LastTagSize :: non_neg_integer(), Rest :: binary(), [tag()]}}. |