class Tremolite::HtmlBuffer

Defined in:

tremolite/html_buffer.cr

Constant Summary

Log = ::Log.for(self)

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def add_to_sitemap #

[View source]
def add_to_sitemap_urls : Array(String) #

[View source]
def buffer : Hash(String, String) #

[View source]
def check(url : String, content : String, public_path : String, add_to_sitemap : Bool = true, view = nil) : Bool #

return true if file must be written


[View source]
def compare_content(old_content : String, new_content : String) : Bool #

[View source]
def crawler_changefreq : Hash(String, String) #

for sitemap


[View source]
def crawler_lastmod : Hash(String, Time) #

for sitemap


[View source]
def diff_lines(url, i, old_line, new_line) #

[View source]
def display_diff_of_content(url : String, old_content : String, new_content : String) #

[View source]
def get_referenced_link(key : String) #

[View source]
def post_last_modified : Time #

[View source]
def referenced_links_count #

[View source]
def store_referenced_link(key : String, url : String, optional : String = "", post_slug : String = "") #

[View source]