old_contents: # punjab tac file
  from twisted.web import server, resource, static
  from twisted.application import service, internet
  
  from punjab.httpb  import Httpb, HttpbService
  
  root = static.File("./html")
  
  
  #b = resource.IResource(HttpbService(1, use_raw=True))
  b = resource.IResource(HttpbService(1))
  root.putChild('http-bind', b)
  
  
  site  = server.Site(root)
  
  application = service.Application("punjab")
  internet.TCPServer(5280, site).setServiceParent(application)
  
  
new_contents: # punjab tac file
  from twisted.web import server, resource, static
  from twisted.application import service, internet
  
  from punjab.httpb  import Httpb, HttpbService
  
  root = static.File("./html")
  
  
  #b = resource.IResource(HttpbService(1, use_raw=True))
  b = resource.IResource(HttpbService(1))
  # You can limit servers with a whitelist. 
  # The whitelist is a list of strings to match domain names.
  # b.white_list = ['jabber.org', 'thetofu.com']
  root.putChild('http-bind', b)
  
  
  site  = server.Site(root)
  
  application = service.Application("punjab")
  internet.TCPServer(5280, site).setServiceParent(application)
  
  
subject: add white list docs to tac file