A new Riff-radio.org site with a static approach.

crumbs.tmpl.py 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # -*- coding:utf-8 -*-
  2. from mako import runtime, filters, cache
  3. UNDEFINED = runtime.UNDEFINED
  4. STOP_RENDERING = runtime.STOP_RENDERING
  5. __M_dict_builtin = dict
  6. __M_locals_builtin = locals
  7. _magic_number = 10
  8. _modified_time = 1676236796.246071
  9. _enable_loop = True
  10. _template_filename = 'themes/bootstrap3/templates/crumbs.tmpl'
  11. _template_uri = 'crumbs.tmpl'
  12. _source_encoding = 'utf-8'
  13. _exports = ['bar']
  14. def _mako_get_namespace(context, name):
  15. try:
  16. return context.namespaces[(__name__, name)]
  17. except KeyError:
  18. _mako_generate_namespaces(context)
  19. return context.namespaces[(__name__, name)]
  20. def _mako_generate_namespaces(context):
  21. ns = runtime.TemplateNamespace('ui', context._clean_inheritance_tokens(), templateuri='ui_helper.tmpl', callables=None, calling_uri=_template_uri)
  22. context.namespaces[(__name__, 'ui')] = ns
  23. def render_body(context,**pageargs):
  24. __M_caller = context.caller_stack._push_frame()
  25. try:
  26. __M_locals = __M_dict_builtin(pageargs=pageargs)
  27. _import_ns = {}
  28. _mako_get_namespace(context, 'ui')._populate(_import_ns, ['*'])
  29. __M_writer = context.writer()
  30. __M_writer('\n')
  31. __M_writer('\n')
  32. return ''
  33. finally:
  34. context.caller_stack._pop_frame()
  35. def render_bar(context,crumbs):
  36. __M_caller = context.caller_stack._push_frame()
  37. try:
  38. _import_ns = {}
  39. _mako_get_namespace(context, 'ui')._populate(_import_ns, ['*'])
  40. ui = _mako_get_namespace(context, 'ui')
  41. __M_writer = context.writer()
  42. __M_writer('\n')
  43. __M_writer(str(ui.breadcrumbs(crumbs)))
  44. __M_writer('\n')
  45. return ''
  46. finally:
  47. context.caller_stack._pop_frame()
  48. """
  49. __M_BEGIN_METADATA
  50. {"filename": "themes/bootstrap3/templates/crumbs.tmpl", "uri": "crumbs.tmpl", "source_encoding": "utf-8", "line_map": {"23": 2, "26": 0, "33": 2, "34": 5, "40": 3, "47": 3, "48": 4, "49": 4, "55": 49}}
  51. __M_END_METADATA
  52. """