Ejemplo n.º 1
0
	def get(self):
		code = self.request.get("code")
		# if other people use http://localhost?code=%code%
		if code:
			# <br> == change line
			self.response.write(printoutput(code.replace("<br>","\n")))
		else:
			self.response.write(html%("",""))
Ejemplo n.º 2
0
	def post(self):
		code = self.request.get("code")
		self.response.write(html%(code,"<br />"+printoutput(code)))