Side by Side Diff
Use n/p to move between diff chunks; N/P to move between comments.
Draft comments are only viewable by you.
Keyboard Shortcuts
File
u
:
up to issue
j
/
k
:
jump to file after / before current file
J
/
K
:
jump to next file with a comment after / before current file
Side-by-side diff
i
:
toggle intra-line diffs
e
:
expand all comments
c
:
collapse all comments
s
:
toggle showing all comments
n
/
p
:
next / previous diff chunk or comment
N
/
P
:
next / previous comment
<Up>
/
<Down>
:
next / previous line
Issue
u
:
up to list of issues
j
/
k
:
jump to patch after / before current patch
o
/
<Enter>
:
open current patch in side-by-side view
i
:
open current patch in unified diff view
Issue List
j
/
k
:
jump to issue after / before current issue
o
/
<Enter>
:
open current issue
Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr)
|
Please choose your nickname with
Settings
|
Help
|
Chromium Project
|
Gerrit Changes
|
Sign out
(4)
Issues
Search
My Issues
|
Starred
Open
|
Closed
|
All
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.
Context:
3 lines
10 lines
25 lines
50 lines
75 lines
100 lines
Whole file
Column Width:
Tab Spaces:
Jump to:
third_party/pystache/LICENSE
third_party/pystache/OWNERS
third_party/pystache/README.chromium
third_party/pystache/src/__init__.py
third_party/pystache/src/common.py
third_party/pystache/src/context.py
third_party/pystache/src/defaults.py
third_party/pystache/src/init.py
third_party/pystache/src/loader.py
third_party/pystache/src/locator.py
third_party/pystache/src/parsed.py
third_party/pystache/src/parser.py
third_party/pystache/src/renderengine.py
third_party/pystache/src/renderer.py
third_party/pystache/src/specloader.py
third_party/pystache/src/template_spec.py
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')
OLD
NEW
(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)
OLD
NEW
« no previous file with comments
|
« third_party/pystache/src/defaults.py
('k') |
third_party/pystache/src/loader.py »
('j') |
no next file with comments »
Issue 2962783004: Adding pystache to third_party (Closed)
Created 3 years, 5 months ago by pkotwicz
Modified 3 years, 5 months ago
Reviewers: open-source-third-party-reviews_google.com, Yaron, xam, Nico
Base URL:
Comments: 0
This is Rietveld
408576698