@node('SimpleNode')
def simple_tag(writer, node):
 name = node.tag_name
 if (writer.env and (name not in writer.env.filters) and (name not in writer._filters_warned)):
  writer._filters_warned.add(name)
  writer.warn(("Filter %s probably doesn't exist in Jinja" % name))
 if (not node.vars_to_resolve):
  writer.start_variable()
  writer.write('request|')
  writer.write(name)
  writer.end_variable()
  return
 first_var = node.vars_to_resolve[0]
 args = node.vars_to_resolve[1:]
 writer.start_variable()
 writer.node(first_var)
 writer.write('|')
 writer.write(name)
 if args:
  writer.write('(')
  for (idx, var) in enumerate(args):
   if idx:
    writer.write(', ')
   if var.var:
    writer.node(var)
   else:
    writer.literal(var.literal)
  writer.write(')')
 writer.end_variable()

@ node ( 'SimpleNode' ) def simple_tag ( writer , node ) : name = node . tag_name if ( writer . env and ( name not in writer . env . filters ) and ( name not in writer . _filters_warned ) ) : writer . _filters_warned . add ( name ) writer . warn ( ( "Filter %s probably doesn't exist in Jinja" % name ) ) if ( not node . vars_to_resolve ) : writer . start_variable ( ) writer . write ( 'request|' ) writer . write ( name ) writer . end_variable ( ) return first_var = node . vars_to_resolve [ 0 ] args = node . vars_to_resolve [ 1 : ] writer . start_variable ( ) writer . node ( first_var ) writer . write ( '|' ) writer . write ( name ) if args : writer . write ( '(' ) for ( idx , var ) in enumerate ( args ) : if idx : writer . write ( ', ' ) if var . var : writer . node ( var ) else : writer . literal ( var . literal ) writer . write ( ')' ) writer . end_variable ( )
check if the simple tag exist as a filter in .