module Markdown

Defined in:

markdown.cr

Class Method Summary

Class Method Detail

def self.new_page(path) #

Create a new "page" file


[View source]
def self.new_post(path) #

Create a new "post" file


[View source]
def self.read_all(path) #

Parse all markdown posts in a path and build Markdown::File objects out of them


[View source]
def self.render(posts, require_date = true) #

Render given posts using given template

posts is an Array of Markdown::File if require_date is true, posts must have a date


[View source]
def self.render_index(posts, output, title = nil, extra_inputs = [] of String, extra_feed = nil) #

Create an index page out of a list of posts, save in output


[View source]
def self.render_rss(posts, output, title) #

Create a RSS file out of posts with title, save in output


[View source]
def self.validate(posts, require_date = true) #

Similar to self.render but it only validates correctness of posts without actually generating output


[View source]