class Marten::Template::Loader::AppDirs

Overview

Represents a template loader allowing to load templates from the installed application directories.

Defined in:

marten/template/loader/app_dirs.cr

Constructors

Instance Method Summary

Instance methods inherited from class Marten::Template::Loader::Base

get_template(template_name) : Template get_template, get_template_source(template_name) : String get_template_source

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def get_template(template_name) : Template #
Description copied from class Marten::Template::Loader::Base

Returns a Marten::Template::Template compiled template from a specific template name.


[View source]
def get_template_source(template_name) : String #
Description copied from class Marten::Template::Loader::Base

Returns the raw content of template from a specific template name.


[View source]