<s> from django import template <EOL> import md5 <EOL> from gitology . utils import parse_date <EOL> register = template . Library ( ) <EOL> @ register . filter ( name = "<STR_LIT>" ) <EOL> def md5sum ( s ) : <EOL> return md5 . new ( s ) . hexdigest ( ) <EOL> @ register . filter <EOL> def ts2date ( s ) : <EOL> return parse_date ( s ) <EOL> @ register . inclusion_tag ( '<STR_LIT>' , takes_context = True ) <EOL> def show_comments ( context , document ) : <EOL> return { '<STR_LIT>' : document , '<STR_LIT>' : context [ '<STR_LIT>' ] } </s>
