class Marten::Template::Loader::FileSystem

Overview

A simple template loader that reads template contents from the file system.

Defined in:

marten/template/loader/file_system.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(path : String) #

[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]
def path : String #

[View source]