lino.modlib.memo

See memo : The memo parser.

Every Lino site has a global memo parser stored in SITE.plugins.memo.parser.

(This module's source code is available here.)

Classes

Plugin(site, app_label, app_name, ...)

Base class for this plugin.

class lino.modlib.memo.Plugin(site, app_label, app_name, app_module, needed_by)

Bases: lino.core.plugin.Plugin

Base class for this plugin.

parser

An instance of lino.modlib.memo.parser.Parser.

front_end = None

The front end to use when writing previews.

If this is None, Lino will use the default front end (lino.core.site.Site.default_ui).

Used on sites that are available via more than one web front ends. The site maintainer must then decide which front end is the primary one.

For example, if you have two sites jane (extjs) and hobbit (react), in the settings.py file for Jane you will say:

def get_installed_apps(self):
    yield super(Site, self).get_installed_apps()
    yield 'lino_react.react'

def get_plugin_configs(self):
    for i in super(Site, self).get_plugin_configs():
        yield i
    yield ('memo', 'front_end', 'react')