medusa v0.1.0 Medusa.Page

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

Prepares a path by creating the necessary folders, if they don't exist

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

prepare_path(target)

Prepares a path by creating the necessary folders, if they don't exist.

Link to this function

target(file_path, dist_path)

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

Link to this function

write(content, dist_path, file_path)

Writes content for a file in the given dist.