Commit 693a0c5e by Chris Jerdonek

Merge pull request #29 (4) "additional docstrings"

From: https://github.com/kennethreitz/pystache/commit/5cd2886c622cd88ef2f68ea189a70ae9af3d8637
Into: issue_29

This commit stubs out a few more docstrings.

Conflicts:
	pystache/template.py
parents 257cbd4a 5cd2886c
# encoding: utf-8 # encoding: utf-8
"""
This module contains the initialization logic called by __init__.py.
"""
from .template import Template from .template import Template
from .view import View from .view import View
from .loader import Loader from .loader import Loader
__all__ = ['Template', 'View', 'Loader', 'render'] __all__ = ['Template', 'View', 'Loader', 'render']
def render(template, context=None, **kwargs): def render(template, context=None, **kwargs):
"""
Return the given template string rendered using the given context.
"""
context = context and context.copy() or {} context = context and context.copy() or {}
context.update(kwargs) context.update(kwargs)
......
# coding: utf-8 # coding: utf-8
"""
This module provides a Template class.
"""
import re import re
import cgi import cgi
import collections import collections
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment