@register.tag
def ssi(parser, token):
 bits = token.split_contents()
 parsed = False
 if (len(bits) not in (2, 3)):
  raise TemplateSyntaxError(u"'ssi' tag takes one argument: the path to the file to be included")
 if (len(bits) == 3):
  if (bits[2] == u'parsed'):
   parsed = True
  else:
   raise TemplateSyntaxError((u"Second (optional) argument to %s tag must be 'parsed'" % bits[0]))
 filepath = parser.compile_filter(bits[1])
 return SsiNode(filepath, parsed)

@ register . tag def ssi ( parser , token ) : bits = token . split_contents ( ) parsed = False if ( len ( bits ) not in ( 2 , 3 ) ) : raise TemplateSyntaxError ( u"'ssi' tag takes one argument: the path to the file to be included" ) if ( len ( bits ) == 3 ) : if ( bits [ 2 ] == u'parsed' ) : parsed = True else : raise TemplateSyntaxError ( ( u"Second (optional) argument to %s tag must be 'parsed'" % bits [ 0 ] ) ) filepath = parser . compile_filter ( bits [ 1 ] ) return SsiNode ( filepath , parsed )
outputs the contents of a given file into the page .