Still.SourceFile (Still v0.8.0) View Source

The SourceFile retains all information regarding a file being compiled in the system. It's conceptually similar to the conn variable in a Phoenix app. The idea is that different subsystems transform this struct and pass it to the next.

Link to this section Summary

Link to this section Types

Specs

t() :: %Still.SourceFile{
  content: binary() | nil,
  dependency_chain: [binary()],
  extension: binary() | nil,
  input_file: binary(),
  metadata: map(),
  output_file: binary() | nil,
  profilable: boolean(),
  requested_output_file: binary() | nil,
  run_type: :render | :compile | :compile_metadata | :compile_dev
}

Link to this section Functions

Link to this function

for_extension(source_file, extension)

View Source