class Vox::Config
- Vox::Config
- Reference
- Object
Included Modules
- YAML::Serializable
Defined in:
vox/config.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
-
.new(root_dir : String = ".", src_dir : String = "src", target_dir : String = "target", layout : String = "_layout.{{ext}}")
Should use .parse or .parse_file instead.
Class Method Summary
- .normalize_paths(src_dir, paths)
-
.parse(text)
TODO handle invalid YAML
- .parse_file(path)
Instance Method Summary
- #after : String | Nil
- #assets : Array(Vox::AssetConfig)
- #before : String | Nil
- #bundle?(file)
- #bundles : Array(Vox::BundleConfig)
- #database : String
- #exclude?(file)
- #excludes : Array(String)
- #execute_after
- #execute_before
-
#fingerprint?(file)
TODO handle dotfiles/no extension files
- #fingerprint_excludes : Array(String)
- #fingerprint_exts : Array(String)
- #includes : Array(String)
-
#layout_for(ext : String)
TODO handle no layout exists, cache results per ext
- #lists : Array(Vox::ListConfig)
- #normalized!
- #normalized_post!
-
#render?(file)
TODO handle dotfiles/no extension files
- #render_excludes : Array(String)
- #render_exts : Array(String)
- #root_dir : String
- #src_dir : String
- #target_dir : String
-
#trailing_slash : Bool
if set to true, adds trailing slash to path
-
#url : String | Nil
optional, only used for RSS feeds
Constructor Detail
def self.new(root_dir : String = ".", src_dir : String = "src", target_dir : String = "target", layout : String = "_layout.{{ext}}")
#
Should use .parse or .parse_file instead. This initialization method is for specs.