abstract class Teeplate::FileTree
- Teeplate::FileTree
- Reference
- Object
Overview
Collects template files from a local directory.
Defined in:
lib/file_tree.crInstance Method Summary
-
#collect_from(dir, unique = false, relative_dir = nil)
Collects file entries from the dir directory.
-
#file_entries : Array(AsDataEntry)
Returns collected file entries.
-
#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.
-
#rendered_file_entries
Returns file entries to be rendered.
Macro Summary
-
directory(dir)
Collects and embeds template files.
Instance Method Detail
Collects file entries from the dir directory.
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
.
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.
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.