View Source Hologram.JS (hologram v0.3.0)

JavaScript interop.

Summary

Functions

Executes JavaScript code. Server-side implementation is just a dummy. The actual implementation is on the client-side.

Provides a convenient syntax for executing JavaScript code using the ~JS sigil.

Functions

exec(code)

@spec exec(String.t()) :: String.t()

Executes JavaScript code. Server-side implementation is just a dummy. The actual implementation is on the client-side.

sigil_JS(code, list)

(since 1.15.0)
@spec sigil_JS(String.t(), []) :: String.t()

Provides a convenient syntax for executing JavaScript code using the ~JS sigil.