Updated Liquid for Programmers (markdown)

Ben Polinsky
2016-07-03 16:42:07 -04:00
parent 292c394202
commit 691e37d7fa
+1 -1
@@ -145,7 +145,7 @@ or
## Difference Between Assigns and Registers
When you render a template, you can pass it assigns and registers. The difference is subtle: assigns are exposed to the template, while registers are exposed to Drops, Tags, and Filters.
```
@template.render({}, registers: { user: @user })
@template.render({a_drop: ADrop.new(dropped_resource)}, registers: { user: @user })
```
### Create your own tag blocks