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
8ca7408f
Commit
8ca7408f
authored
Aug 23, 2011
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code in __init__.py is evil
parent
f543efac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
8 deletions
+17
-8
pystache/__init__.py
+2
-8
pystache/core.py
+15
-0
No files found.
pystache/__init__.py
View file @
8ca7408f
from
pystache.template
import
Template
from
pystache.view
import
View
from
pystache.loader
import
Loader
def
render
(
template
,
context
=
None
,
**
kwargs
):
context
=
context
and
context
.
copy
()
or
{}
context
.
update
(
kwargs
)
return
Template
(
template
,
context
)
.
render
()
from
core
import
*
\ No newline at end of file
pystache/core.py
0 → 100644
View file @
8ca7408f
# -*- coding: utf-8 -*-
from
.template
import
Template
from
.view
import
View
from
.loader
import
Loader
__all__
=
[
'Template'
,
'View'
,
'Loader'
,
'render'
]
def
render
(
template
,
context
=
None
,
**
kwargs
):
context
=
context
and
context
.
copy
()
or
{}
context
.
update
(
kwargs
)
return
Template
(
template
,
context
)
.
render
()
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