class Vox::FrontMatter

Defined in:

vox/front_matter.cr

Constant Summary

EMPTY_YAML = Hash(YAML::Any, YAML::Any).new

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(config : Config, list : List) #

[View source]

Class Method Detail

def self.split(text) #

TODO handle carriage returns, whitespace after dashes


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

TODO handle file not found error


[View source]

Instance Method Detail

def add(sources : Array(String)) #

TODO handle invalid ids (eg spaces)


[View source]
def pages : Hash(YAML::Any, YAML::Any) #

[View source]
def pages_by_source : Hash(String, YAML::Any) #

[View source]
def resolve_links(src : String) #

[View source]
def resolve_links_obj(obj : YAML::Any) #

[View source]