fork download
  1. import re
  2.  
  3. class DefaultTemplateDict(dict):
  4. def __missing__(self, key):
  5. return key
  6.  
  7. class Template(object):
  8. def __init__(self, directory, mapped_values={}):
  9. self.directory = directory
  10. self.mapped_values = mapped_values
  11.  
  12. def render(self):
  13. result = "<b>hello world</b>"
  14. return result
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty