Still.Preprocessor.AddLayout (Still v0.8.0) View Source

Still.Preprocessor that renders the layout of a given file and wraps it around the content of that same file.

Note that this rendering happens outside Still.Compiler.CompilationStage.

For this preprocessor to work, it requires a :layout key in the metadata, which can be set in the frontmatter and then added to the metadata by Still.Preprocessor.Frontmatter.

Link to this section Summary

Functions

Runs after the next preprocessors finish running.

Runs the current preprocessor and invokes the next one.

Runs the Elixir.Still.SourceFile through the current preprocessor and the next.

Link to this section Functions

Link to this function

after_render(source_file)

View Source

Runs after the next preprocessors finish running.

Returns the resulting Elixir.Still.SourceFile.

Runs the current preprocessor and invokes the next one.

Returns the resulting Elixir.Still.SourceFile.

Runs the Elixir.Still.SourceFile through the current preprocessor and the next.

Link to this function

run(source_file, next_preprocessors)

View Source