nimbusex v0.4.0 Nimbusex.HTML.Javascript
Module adds javascript helper
Summary
Functions
Render a script tag. By default it accepts script src and options. You can modify the attributes by passing a list as the last argument
Functions
Render a script tag. By default it accepts script src and options. You can modify the attributes by passing a list as the last argument.
Source src can be url or static_path to you javascript source.
Examples:
iex> javascript(“app.js”) “”
iex> javascript(“http://path.to.example/app.js”) “”
iex> javascript(“http://path.to.example/app.js”, id: “identifier”) “”