class Vox::Config

Included Modules

Defined in:

vox/config.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
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.


[View source]

Class Method Detail

def self.normalize_paths(src_dir, paths) #

[View source]
def self.parse(text) #

TODO handle invalid YAML


[View source]
def self.parse_file(path) #

[View source]

Instance Method Detail

def after : String | Nil #

[View source]
def assets : Array(Vox::AssetConfig) #

[View source]
def before : String | Nil #

[View source]
def bundle?(file) #

[View source]
def bundles : Array(Vox::BundleConfig) #

[View source]
def database : String #

[View source]
def exclude?(file) #

[View source]
def excludes : Array(String) #

[View source]
def execute_after #

[View source]
def execute_before #

[View source]
def fingerprint?(file) #

TODO handle dotfiles/no extension files


[View source]
def fingerprint_excludes : Array(String) #

[View source]
def fingerprint_exts : Array(String) #

[View source]
def includes : Array(String) #

[View source]
def layout_for(ext : String) #

TODO handle no layout exists, cache results per ext


[View source]
def lists : Array(Vox::ListConfig) #

[View source]
def normalized! #

[View source]
def normalized_post! #

[View source]
def render?(file) #

TODO handle dotfiles/no extension files


[View source]
def render_excludes : Array(String) #

[View source]
def render_exts : Array(String) #

[View source]
def root_dir : String #

[View source]
def src_dir : String #

[View source]
def target_dir : String #

[View source]
def trailing_slash : Bool #

if set to true, adds trailing slash to path


[View source]
def url : String | Nil #

optional, only used for RSS feeds


[View source]