Reader Objects

static readers.load(conf)

Load and parse textfiles from content directory and optionally filter by an ignore pattern. Filenames ending with a known binary extension such as audio, video or images are ignored. If not blacklisted open the file end check if it utils.istext().

This function is not exception-tolerant. If Acrylamid could not handle a file it will raise an exception.

It returns a tuple containing the list of entries sorted by date reverse (newest comes first) and other pages (unsorted).

Parameters:conf – configuration with CONTENT_DIR and CONTENT_IGNORE set
class acrylamid.readers.Entry(path, conf)

Returns the processed content. This one of the core functions of acrylamid: it compiles incrementally the filter chain using a tree representation and saves final output or intermediates to cache, so we can rapidly re-compile the whole content.

The cache is rather dumb: Acrylamid can not determine wether it differs only in a single character. Thus, to minimize the overhead the cache object is zlib-compressed.


first 50 characters from the source


If set to True, the entry will not appear in articles, index, feed and tag view.


Filename’s extension without leading dot


=”Type of this entry. Can be either 'entry' or 'page'


Test whether BaseEntry has prop in self.props.


Returns the actual, unmodified content.


Tags applied to this entry, if any. If you set a single string it is converted to an array containing this string.


=”Type of this entry. Can be either 'entry' or 'page'

Related Topics

This Page