class

Hwaro::Services::Scaffolds::Remote

Inherits Hwaro::Services::Scaffolds::Base / Reference / Object

Constructors

new(source : String)
Source

Class methods

parse_source(source : String) : Tuple(String, String, String)

Parse a remote source string into {owner, repo, subpath}

Source
remote?(source : String) : Bool

Check if a scaffold source string represents a remote scaffold

Source

Instance methods

archetype_files

Remote scaffolds mirror the upstream repo verbatim; we don't inject a built-in default.md because the remote might deliberately not use archetypes, or already ship its own under archetypes/.

Source
config_content(skip_taxonomies : Bool = false, multilingual_languages : Array(String) = [] of String) : String

Returns the config.toml content. multilingual_languages (from --include-multilingual) is threaded through so the full config emits a real, enabled [languages] block instead of the commented placeholder.

Source
content_files(skip_taxonomies : Bool = false) : Hash(String, String)

Returns sample content files as a hash of path => content

Source
description

Returns the description of this scaffold

Source
minimal_config_content(skip_taxonomies : Bool = false, multilingual_languages : Array(String) = [] of String) : String

If the remote provided a config.toml, use it as-is (even for --minimal-config). If not (remote can be templates-only), fall back to the built-in minimal generator.

Source
shortcode_files

Returns shortcode files as a hash of path => content

Source
static_files

Returns static files as a hash of path => content. Every scaffold inherits a tiny SVG favicon so a freshly-generated site doesn't show a blank tab icon. Scaffolds that override static_files (blog/docs/book) merge super to keep it.

Source
template_files(skip_taxonomies : Bool = false) : Hash(String, String)

Returns template files as a hash of path => content

Source
type

Returns the scaffold type

Source