Closed swalkinshaw closed 11 years ago
Just noticed there's another PR open (#13) that has some big changes. If you were going to merge both these in, I'd suggest mine first since it would be a lot easier.
This is very useful.
@swalkinshaw Sorry, can you update the Readme in this pull request so it merges cleanly. I inadvertently merged in another pull request that also added some changes to the Readme for highlighting.
No problem. That highlighting fix was actually better since it used erb
instead of ruby
so I've updated and rebased mine to use that.
This PR updates a few things, but mainly adds support for short-hand partial rendering.
Before, only the following syntax was supported:
Now, this is also supported:
Few other minor changes:
is_a?(Proc)
torespond_to?(:call)
for a bit more flexibility.cache: false
for easy collection caching toggling.Let me know if you want any of these extra commits removed.