Ejemplo n.º 1
0
def render_page(request, module, parsed, context={}):
    context['is_mobile'] = ViewHelper.is_mobile(request)
    context['module'] = module
    context['nav'] = parsed
    context['sample_student'] = nylah
    context['mod_description'] = Module.get_description()

    return render(request, parsed['templatePath'], context)
Ejemplo n.º 2
0
def render_page(request, module, parsed, context={}):
    context['is_mobile'] = ViewHelper.is_mobile(request)
    context['module'] = module
    context['nav'] = parsed

    return render(request, parsed['templatePath'], context)