medusa v0.2.4 Medusa.Page View Source

Creates and writes pages

Link to this section Summary

Functions

Creates a new page by reading the given file and compiling it with the templating engine.

Builds the target path using the file path and the dist folder

Writes content for a file in the given dist.

Link to this section Functions

Creates a new page by reading the given file and compiling it with the templating engine.

Link to this function

target(file_path, dist_path) View Source

Builds the target path using the file path and the dist folder

Link to this function

write(content, dist_path, file_path) View Source

Writes content for a file in the given dist.