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)
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)