mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-09-25 17:55:23 +00:00
20 lines
437 B
Python
20 lines
437 B
Python
# encoding: utf-8
|
|
|
|
"""
|
|
This module contains the initialization logic called by __init__.py.
|
|
|
|
"""
|
|
|
|
from pystache.parser import parse
|
|
from pystache.renderer import Renderer
|
|
from pystache.template_spec import TemplateSpec
|
|
|
|
|
|
def render(template, context=None, **kwargs):
|
|
"""
|
|
Return the given template string rendered using the given context.
|
|
|
|
"""
|
|
renderer = Renderer()
|
|
return renderer.render(template, context, **kwargs)
|