z_filehandler (zotonic_core v1.0.0-rc.11)

Extend the filehandler with mappers for translations, templates and mediaclass.

Link to this section Summary

Functions

Check if an app file is added, if so we need to tell the module managers and sites to upgrade
Mark a file as modified in the mtime index
A Zotonic template changed
Reload all dispatch rules
Reload translations

Link to this section Functions

Link to this function

app_file_check(Filename)

Check if an app file is added, if so we need to tell the module managers and sites to upgrade
Link to this function

filehandler_mappers_observer(_, Mappers, Ctx)

Link to this function

mark_modified(Filename)

Mark a file as modified in the mtime index
Link to this function

reindex_modules()

-spec reindex_modules() -> ok.
A Zotonic template changed
Link to this function

reindex_modules_task()

-spec reindex_modules_task() -> ok.
Link to this function

reload_dispatch()

-spec reload_dispatch() -> ok.
Reload all dispatch rules
Link to this function

reload_dispatch_task()

-spec reload_dispatch_task() -> ok.
Link to this function

reload_translations()

-spec reload_translations() -> ok.
Reload translations
Link to this function

reload_translations_task()

-spec reload_translations_task() -> ok.
Link to this function

start_observers()

-spec start_observers() -> ok.