This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyparsing as p | |
import inspect | |
import pprint | |
def process(fn, inline=True, badges=True, multiline=True, tag="", mtag="", debug=False, skip_lines=2): | |
""" | |
You can use semicolon tags or specify pyparsing tag in function call | |
for example, for @tag: | |
'@' + p.Word(p.alphas + '_').setResultsName('tag') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
s = { | |
'tag': '<span class="boom"></span>', | |
'content': | |
[ | |
'Server status: ', | |
{ | |
'tag': '<a></a>', | |
'content': | |
[ | |
'[online]', |
NewerOlder