abstract class Teeplate::FileTree

Overview

Collects template files from a local directory.

Defined in:

lib/file_tree.cr

Instance Method Summary

Macro Summary

Instance Method Detail

def collect_from(dir, unique = false, relative_dir = nil) #

Collects file entries from the dir directory.


[View source]
def file_entries : Array(AsDataEntry) #

Returns collected file entries.


[View source]
def render(out_dir, force : Bool = false, interactive : Bool = false, interact : Bool = false, list : Bool = false, color : Bool = false, per_entry : Bool = false, quit : Bool = true) #

Renders all collected file entries.

For more information about the arguments, see Renderer.


[View source]
def rendered_file_entries #

Returns file entries to be rendered.

This method just returns the #file_entries method's result. To filter entries, override this method.


[View source]

Macro Detail

macro directory(dir) #

Collects and embeds template files.

It runs another macro process that collects template files and embeds the files as code.


[View source]