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

Filters out files that are not the one being requested.

This preprocessor is helpful during development when the user is requesting a page. Still identifies the input file that generates the file being requested by the user, but that input file can generate multiple output files (for instance, files that use pagination). Those extra pages being compiled will not be delivered to the client. This extension uses the :requested_output_file attribute to identify the file being requested, and filters out all others.

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