def wiki_template(template_slug, sr=None):
 if (not sr):
  try:
   sr = Subreddit._by_name(g.default_sr)
  except NotFound:
   return None
 try:
  wiki = WikiPage.get(sr, ('templates/%s' % template_slug))
 except tdb_cassandra.NotFound:
  return None
 return wiki._get('content')

def wiki_template ( template_slug , sr = None ) : if ( not sr ) : try : sr = Subreddit . _by_name ( g . default_sr ) except NotFound : return None try : wiki = WikiPage . get ( sr , ( 'templates/%s' % template_slug ) ) except tdb_cassandra . NotFound : return None return wiki . _get ( 'content' )
pull content from a subreddits wiki page for internal use .