def _render(self, value, format):
        """ Writes javascript to call momentjs function """
        template = '<script>\ndocument.write(moment(\"{t}\").{f});\n</script>'
        return Markup(template.format(t=value, f=format))
def _render ( self , value , format ) : template = '<script>\ndocument.write(moment(\"{t}\").{f});\n</script>' return Markup ( template . format ( t = value , f = format ) )
Writes javascript to call momentjs function