chevron.render(**args)
```
+chevron supports lambdas
+```python
+import chevron
+
+def first(text, render):
+ # return only first occurance of items
+ result = render(text)
+ return [ x.strip() for x in result.split(" || ") if x.strip() ][0]
+
+def inject_x(text, render):
+ # inject data into scope
+ return render(text, {'x': 'data'})
+
+args = {
+ template: 'Hello, {{# first}} {{x}} || {{y}} || {{z}} {{/ first}}! {{# inject_x}} {{x}} {{/ inject_x}}',
+
+ data: {
+ 'y': 'foo',
+ 'z': 'bar',
+ 'first': first,
+ 'inject_x': inject_x
+ }
+}
+
+chevron.render(**args)
+```
+
INSTALL
-------