Skip to content

Commit

Permalink
Merge 589a834 into 076fbfa
Browse files Browse the repository at this point in the history
  • Loading branch information
akosthekiss committed Oct 1, 2018
2 parents 076fbfa + 589a834 commit 2cd2d56
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ Python usage with unpacking
import chevron

args = {
template: 'Hello, {{ mustache }}!',
'template': 'Hello, {{ mustache }}!',

data: {
'data': {
'mustache': 'World'
}
}
Expand All @@ -92,9 +92,9 @@ chevron supports partials (via dictionaries)
import chevron

args = {
template: 'Hello, {{> thing }}!',
'template': 'Hello, {{> thing }}!',

partials_dict: {
'partials_dict': {
'thing': 'World'
}
}
Expand All @@ -107,13 +107,13 @@ chevron supports partials (via the filesystem)
import chevron

args = {
template: 'Hello, {{> thing }}!',
'template': 'Hello, {{> thing }}!',

# defaults to .
partials_path: 'partials/',
'partials_path': 'partials/',

# defaults to mustache
partials_ext: 'ms',
'partials_ext': 'ms',
}

# ./partials/thing.ms will be read and rendered
Expand All @@ -134,9 +134,9 @@ def inject_x(text, render):
return render(text, {'x': 'data'})

args = {
template: 'Hello, {{# first}} {{x}} || {{y}} || {{z}} {{/ first}}! {{# inject_x}} {{x}} {{/ inject_x}}',
'template': 'Hello, {{# first}} {{x}} || {{y}} || {{z}} {{/ first}}! {{# inject_x}} {{x}} {{/ inject_x}}',

data: {
'data': {
'y': 'foo',
'z': 'bar',
'first': first,
Expand Down

0 comments on commit 2cd2d56

Please sign in to comment.