mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-21 04:05:49 +00:00
parse_pages - example of how to add functions to md preprocessor
This commit is contained in:
@@ -123,6 +123,8 @@ def render_pages(precompiled, target=DEFAULT_TARGET):
|
||||
env.trim_blocks = True
|
||||
|
||||
pp_env = Environment(loader=FileSystemLoader(CONTENT_PATH))
|
||||
#Example: if we want to add custom functions to the md files
|
||||
#pp_env.globals['foo'] = lambda x: "FOO %s"%x
|
||||
|
||||
for currentpage in pages:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user