@LiquidTags.register('pygal')
def pygal_parser(preprocessor, tag, markup):
 data = loads(markup)
 if ((tag == 'pygal') and (data is not None)):
  output = run_pygal(data)
  return ('<div class="pygal" style="text-align: center;"><embed type="image/svg+xml" src=%s style="max-width:1000px"/></div>' % output)
 else:
  raise ValueError('Error processing input. \nExpected syntax: {0}'.format(SYNTAX))

@ LiquidTags . register ( 'pygal' ) def pygal_parser ( preprocessor , tag , markup ) : data = loads ( markup ) if ( ( tag == 'pygal' ) and ( data is not None ) ) : output = run_pygal ( data ) return ( '<div class="pygal" style="text-align: center;"><embed type="image/svg+xml" src=%s style="max-width:1000px"/></div>' % output ) else : raise ValueError ( 'Error processing input. \nExpected syntax: {0}' . format ( SYNTAX ) )
simple pygal parser .