Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: third_party/pystache/src/init.py

Issue 2962783004: Adding pystache to third_party (Closed)
Patch Set: Merge branch 'master' into mustache Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/pystache/src/defaults.py ('k') | third_party/pystache/src/loader.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # encoding: utf-8
2
3 """
4 This module contains the initialization logic called by __init__.py.
5
6 """
7
8 from pystache.parser import parse
9 from pystache.renderer import Renderer
10 from pystache.template_spec import TemplateSpec
11
12
13 def render(template, context=None, **kwargs):
14 """
15 Return the given template string rendered using the given context.
16
17 """
18 renderer = Renderer()
19 return renderer.render(template, context, **kwargs)
OLDNEW
« no previous file with comments | « third_party/pystache/src/defaults.py ('k') | third_party/pystache/src/loader.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698