observe_scomp_script_render/2

Add extra javascript with the \{% script %\} tag. (map) Used to let modules inject extra javascript depending on the arguments of the \{% script %\} tag. Must return an iolist()

Type:

map

Return:

#scomp_script_render{} properties:

  • is_nostartup: boolean

  • args: list

Edit on GitHub