additional docstrings

This commit is contained in:
Kenneth Reitz
2011-08-23 21:20:05 -04:00
parent e501ec273d
commit 5cd2886c62
2 changed files with 18 additions and 0 deletions
+10
View File
@@ -1,13 +1,23 @@
# -*- coding: utf-8 -*-
"""
pystache.core
~~~~~~~~~~~~~
This module provides the main entrance point to Pystache.
"""
from .template import Template
from .view import View
from .loader import Loader
__all__ = ['Template', 'View', 'Loader', 'render']
def render(template, context=None, **kwargs):
"""Renders a template string against the given context."""
context = context and context.copy() or {}
context.update(kwargs)
+8
View File
@@ -1,5 +1,12 @@
# -*- coding: utf-8 -*-
"""
pystache.template
~~~~~~~~~~~~~~~~~
This module provides Pystache's Template class.
"""
import re
import cgi
import collections
@@ -15,6 +22,7 @@ except ImportError:
literal = unicode
class Modifiers(dict):
"""Dictionary with a decorator for assigning functions to keys."""