class

Teeplate::Renderer

Inherits Reference / Object

Constructors

new(out_path : String, force : Bool, interact : Bool, list : Bool, color : Bool, per_entry : Bool, quit : Bool)
Source

Instance methods

<<(entries : Array(AsDataEntry))

Appends data entries.

Source
<<(entry : AsDataEntry)

Appends a data entry.

Source
colorizes?

Tests if rendering results should be colorized.

Source
forces?

Tests if overwriting should be forced.

Source
interactive?

Tests if overwriting should be done after confirmation.

Source
listing?

Tests if rendering results should be printed.

Source
new_rendering_entry(data)

Creates and returns a new rendering entry with a specified data entry.

Overrides this method if you want to use a custom class.

Source
out_path

Returns the base output location.

Source
per_entry?

Tests if files should be rendered per file.

If true, the renderer executes writing after each time overwriting is confirmed.

Otherwise, all files are rendered at once after all confirmations are finished.

This condition means nothing if overwriting is not interative.

Source
quittable?

Tests if rendering is quittable.

If true, rendering can be quitted on each overwriting's confirmation.

Source
quitted?

Tests if rendering has been quitted.

Source
render

Starts rendering.

Source