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