From: Noah Morrison Date: Thu, 27 Nov 2014 21:46:18 +0000 (-0500) Subject: Added syntax highlighting for python code X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=e8f5ce39c0f13abb90a1f656f17804f4d5a3204c;p=chevron.git Added syntax highlighting for python code --- 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 = {