From e8f5ce39c0f13abb90a1f656f17804f4d5a3204c Mon Sep 17 00:00:00 2001 From: Noah Morrison Date: Thu, 27 Nov 2014 16:46:18 -0500 Subject: [PATCH] Added syntax highlighting for python code --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 222f6c2..cb37375 100644 --- a/README.md +++ b/README.md @@ -38,14 +38,14 @@ $ chevron [data file] [template file] ``` Python usage with strings -``` +```python import chevron chevron.render('Hello, {{ mustache }}!', {'mustache': 'World'}) ``` Python usage with file -``` +```python import chevron with open('file.mustache', 'r') as f: @@ -53,7 +53,7 @@ with open('file.mustache', 'r') as f: ``` Python usage with unpacking -``` +```python import chevron args = { @@ -68,7 +68,7 @@ chevron.render(**args) ``` chevron supports partials (via dictionaries) -``` +```python import chevron args = { @@ -83,7 +83,7 @@ chevron.render(**args) ``` chevron supports partials (via the filesystem) -``` +```python import chevron args = { -- 2.47.3