Still.Compiler.Incremental.Node (Still v0.8.0) View Source

An incremental node represents a file that is processed individually.

Incremental nodes attempt to compile/render a file synchronously. This process can take a long time, which is usually fine, but the default timeout can be changed in the:compilation_timeout key in your config/config.exs. Default is :infinity.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Returns the compilation timeout defined in the config.

Compiles the file mapped by the Node with the given PID.

Compiles the metadata of the file mapped by the Node with the given PID.

Renders the file mapped by the Node with the given PID.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Returns the compilation timeout defined in the config.

You can change this by setting

config :still, :compilation_timeout, 1_000_000

Link to this function

compile(pid, opts \\ [])

View Source

Compiles the file mapped by the Node with the given PID.

This PID can be obtained from Still.Compiler.Incremental.Registry.

Link to this function

compile_metadata(pid, opts \\ [])

View Source

Compiles the metadata of the file mapped by the Node with the given PID.

This PID can be obtained from Still.Compiler.Incremental.Registry.

Renders the file mapped by the Node with the given PID.

This PID can be obtained from Still.Compiler.Incremental.Registry.