struct

Plombir::Build::Context

Inherits Struct < Value < Object

Inputs for one build: site root, output directory (relative to root unless absolute), whether drafts are included (plombir build --drafts), optional per-collection schema rules (empty means no validation), optional collection permalink patterns (empty means conventional URLs), the site metadata (site.* vars, canonical base, feed identity), whether minify collapses safe HTML whitespace, and whether dated -future posts are included (plombir build --future). The config loader fills all of these from plombir.yml.

Constructors

new(root : String = Dir.current, output : String = "dist", drafts : Bool = false, schemas : Hash(String, Content::Schema::CollectionRules) = {} of String => Content::Schema::CollectionRules, patterns : Hash(String, String) = {} of String => String, site : Config::Site = Config::Site.new, minify : Bool = false, future : Bool = false)
Source

Instance methods

assets_dir
Source
components_dir
Source
content_dir
Source
drafts
Source
future
Source
layouts_dir
Source
minify
Source
output
Source
output_dir

Absolute path of the output directory.

Source
patterns
Source
public_dir
Source
root
Source
schemas
Source
site
Source