Plombir::Build::Context
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)
SourceInstance methods
assets_dir
Sourcecomponents_dir
Sourcecontent_dir
Sourcedrafts
Sourcefuture
Sourcelayouts_dir
Sourceminify
Sourceoutput
Sourcepatterns
Sourcepublic_dir
Sourceroot
Sourceschemas
Sourcesite
Source