Module z_script

Function Index

add_content_script/2
add_script/2
clean/1Remove all scripts from the context, resetting it back to a clean sheet.
get_page_startup_script/1
get_script/1Collect all scripts in the context, returns an iolist with javascript.
get_stream_start_script/1
split/1Split the scripts from the context.

Function Details

add_content_script/2

add_content_script(Script, Context) -> any()

add_script/2

add_script(Script, Context) -> any()

clean/1

clean(Context::Context1) -> Context2

Remove all scripts from the context, resetting it back to a clean sheet.

get_page_startup_script/1

get_page_startup_script(Context) -> any()

get_script/1

get_script(Context) -> iolist()

Collect all scripts in the context, returns an iolist with javascript.

get_stream_start_script/1

get_stream_start_script(Context) -> any()

split/1

split(Context) -> any()

Split the scripts from the context. Returns the scripts and a cleaned context.


Generated by EDoc, Jul 28 2016, 09:11:05.