class Teeplate::RenderingEntry

Defined in:

lib/rendering_entry.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(renderer : Renderer, data : AsDataEntry) #

[View source]

Instance Method Detail

def appends? #

:nodec:


[View source]
def data : AsDataEntry #

Returns the data entry.


[View source]
def forces? #

Tests if this entry forces overwriting.

This condition is determined by the renderer's setting by default. Override this method if the condition should be determined regardless of the renderer's setting.


[View source]
def local_path #

Returns an output path relative to the base location.

It returns the data entry's path by default. Override this method if this path should be different from the data entry's path.


[View source]
def out_path #

Returns an output location.

It makes an absolute location with the renderer's setting and this entry's local path.


[View source]
def renderer : Renderer #

Returns the renderer.


[View source]
def write #

Writes data to the output location.

Override this method if data should be written in a special way.


[View source]