Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pystache_custom
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
pystache_custom
Commits
0acab11d
Commit
0acab11d
authored
Mar 31, 2012
by
Chris Jerdonek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates to template_spec docstrings.
parent
4d8d41bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
pystache/template_spec.py
+11
-8
No files found.
pystache/template_spec.py
View file @
0acab11d
# coding: utf-8
"""
This module supports
specifying custom template information per view
.
This module supports
customized (or special/specified) template loading
.
"""
...
...
@@ -13,21 +13,24 @@ from .locator import Locator
from
.renderer
import
Renderer
# TODO: finish the class docstring.
class
TemplateSpec
(
object
):
"""
A mixin for specifying custom template information.
A mixin
or interface
for specifying custom template information.
Subclass this class only if template customizations are needed.
The "spec" in TemplateSpec can be taken to mean that the template
information is either "specified" or "special."
The following attributes allow one to customize/override template
information on a per View basis. A None value means to use default
behavior and perform no customization. All attributes are initially
set to None.
A view should subclass this class only if customized template loading
is needed. The following attributes allow one to customize/override
template information on a per view basis. A None value means to use
default behavior for that value and perform no customization. All
attributes are initialized to None.
Attributes:
template: the template
to use, as a unicode
string.
template: the template
as a
string.
template_rel_path: the path to the template file, relative to the
directory containing the module defining the class.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment