class Tremolite::Views::BaseView

Defined in:

tremolite/views/base_view.cr

Constant Summary

Log = ::Log.for(self)

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class Tremolite::Views::AbstractView

add_to_sitemap? add_to_sitemap?

Constructor Detail

def self.new(blog : Tremolite::Blog, url : String = "") #

[View source]

Class Method Detail

def self.process_variable(string : String, key : String, value : String) #

[View source]

Instance Method Detail

def close_body_html #

[View source]
def close_html_html #

[View source]
def content #

[View source]
def custom_process_function(command : String, string : String, post : Tremolite::Post | Nil) : String | Nil #

command - string withing {% the string %} string - post string, probably now is not used post - if run within post


[View source]
def footer_html #

[View source]
def head_close_html #

[View source]
def head_open_html #

[View source]
def layout_path #

[View source]
def load_html(name : String, data : Hash(String, String)) #

this should be much faster if data has more keys than document has fields


[View source]
def load_html(name : String) #

[View source]
def nav_html #

Some partials are parametrized


[View source]
def open_body_html #

[View source]
def output #

Alias to refactor write_output


[View source]
def process_functions(string : String, post : Tremolite::Post | Nil = nil) #

[View source]
def process_variable(string : String, key : String, value : String) #

[View source]
def title #

[View source]
def title_html #

[View source]
def to_html #

Try to allow one method create result by joining various parts of html


[View source]
def top_html #

Load html partials


[View source]
def tracking_html #

[View source]