Current section

Files

Jump to
zotonic_filehandler include zotonic_filehandler.hrl
Raw

include/zotonic_filehandler.hrl

%% Called with zotonic_notifier:first. Maps a file to a category {Application, Name}
-record(zotonic_filehandler_categorize, {
filename :: binary()
}).
%% Called with zotonic_notifier:first. Maps a categorized file to a list of actions.
-record(zotonic_filehandler_map, {
verb :: zotonic_filehandler:verb(),
application :: module(),
what :: term(),
extension :: binary(),
root :: binary(),
split :: list(binary()),
filename :: binary()
}).
%% @doc File changed, picked up by zotonic core for livereload by mod_development
-record(zotonic_filehandler_filechange, {
verb :: modify | create | delete,
file :: binary(),
basename :: binary(),
extension :: binary()
}).