Plombir::Scaffold::Site
Creates new Plombir sites under a parent directory.
Constants
FILES = {"content/index.md" => :index, "content/posts/hello-world.md" => :hello_world, "content/pages/about.md" => :about, "layouts/default.html" => :layout_default, "layouts/post.html" => :layout_post, "components/.gitkeep" => :gitkeep, "assets/images/.gitkeep" => :gitkeep, "public/assets/style.css" => :stylesheet, "public/.gitkeep" => :gitkeep, "plombir.yml" => :config, ".gitignore" => :gitignore}
Files written by plombir new, relative to the site root.
.gitkeep entries keep otherwise-empty directories in git.
Constructors
Instance methods
create
Creates the site directory tree and writes every template file.
Raises Site::Error when the target already exists or the name
is blank, so the CLI can render a friendly message.
name
Sourceroot
Source