old_contents: import config
  import importlib
  import textwrap
  
  def path_to_url(path = 'index', parameters = [], hash = ''):
    if hash == '':
      return "http://%s/%s" % (config.base_url, path)
    else:
      return "http://%s/%s#%s" % (config.base_url, path, hash)
  
  # Gets URL for static resource
  def static_to_url(path):
    return path_to_url("static/" + path)
  
  def get_func_from_module(path):
    module_name, func_name = path.rsplit('.', 1)
    module = importlib.import_module(module_name)
    func = getattr(module, func_name)
    return func
  
  def truncate_text(text, length):
    if len(text) <= length:
      return text
  
    next_space_index = text.find(' ', length)
    return text[:next_space_index].rstrip(',.?,:;" ') + ' ...'
  
  def format_date(date):
    return date.strftime('%-B %-m, %-Y')
new_contents: import config
  import importlib
  import textwrap
  
  def path_to_url(path = 'index', parameters = [], hash = ''):
    if hash == '':
      return "http://%s/%s" % (config.base_url, path)
    else:
      return "http://%s/%s#%s" % (config.base_url, path, hash)
  
  # Gets URL for static resource
  def static_to_url(path):
    return path_to_url("static/" + path)
  
  def get_func_from_module(path):
    module_name, func_name = path.rsplit('.', 1)
    module = importlib.import_module(module_name)
    func = getattr(module, func_name)
    return func
  
  def truncate_text(text, length):
    if len(text) <= length:
      return text
  
    next_space_index = text.find(' ', length)
    return text[:next_space_index].rstrip(',.?,:;" ') + ' ...'
  
  def format_date(date):
    return date.strftime('%-B %-d, %-Y')
subject: fix date format