Common¶
-
class
plate.common.config.Config(result)¶ Read JSON Format config file.
-
static
load_conf(conf_file_path)¶ Read
.jsonfileParameters: conf_file_path – .jsonfile pathReturns: conf instance
-
static
-
plate.common.convmd2html.convert_md_to_html(md_text)¶ Convert markdown text to HTML
Parameters: md_text – markdown text Returns: html
-
class
plate.common.singleton_meta.SingletonMeta¶ Singleton Base Class
Example:
class DocumentTraceQueue(object): from common import Singleton __metaclass__ = Singleton
-
plate.common.syntax_highlighting.syntax_highlight(lang, code)¶ code highlighting HTML Format
Parameters: - lang – programming language
- code – code(not html)
Returns: highlighted code(html format)