@library.global_function
def diff_table(content_from, content_to):
 html_diff = BetterHtmlDiff()
 diff = html_diff.make_table(content_from.splitlines(), content_to.splitlines(), context=True)
 return jinja2.Markup(diff)

@ library . global_function def diff_table ( content_from , content_to ) : html_diff = BetterHtmlDiff ( ) diff = html_diff . make_table ( content_from . splitlines ( ) , content_to . splitlines ( ) , context = True ) return jinja2 . Markup ( diff )
creates an html diff of the passed in content_from and content_to .