articlewriter

This module focuses on methods for writing articles to disk.

Article storage is broken into two parts, meta data and markdown content. A folder location may be specified but markdown content will always be stored in a sub folder articleContentFolder.

Members

Aliases

Article
alias Article = Tuple!(ArticleMeta, "meta", string, "content")

Separate the Meta data and Content for easier disk writing and retrieval.

Functions

reduceToNewest
auto reduceToNewest(Range articles)

Reduces the range into the newest article.

saveArticle
void saveArticle(Article article, string folder)

Writes articles to specified folder.

structureArticles
auto structureArticles(Range articles)

Given a range of ArticleMe separate the data into meta data and content.

Manifest constants

articleContentFolder
enum articleContentFolder;

This defines the sub folder for storing articles.

Structs

ArticleMeta
struct ArticleMeta

This is the structure used to store article meta data as Json to disk.

Meta