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

Link to this section Summary

Functions

A Incremental Node represents a file, or folder, that is processed individually. Each file has a list of subscriptions and subcribers. The subscriptions are the files included by the current file. The subscribers are the files that the current file includes. When the current file changes, it notifies the subscribers, and updates the subscriptions.

Link to this section Functions

Link to this function

add_subscription(pid, file)

View Source

A Incremental Node represents a file, or folder, that is processed individually. Each file has a list of subscriptions and subcribers. The subscriptions are the files included by the current file. The subscribers are the files that the current file includes. When the current file changes, it notifies the subscribers, and updates the subscriptions.

A file can be compiled or rendered:

  • Compile - compiling a file means, most times, running it thorugh a preprocessor and writing to to the destination folder.

  • Render - rendering a file means that the current file is being included by another file. Template files may return HTML and images could return a path.

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

Link to this function

remove_subscriber(pid, file)

View Source
Link to this function

render(pid, data, subscriber \\ nil)

View Source