--- title: Hooks And Wrappers Demo --- {% assign css_url = '/' | prepend: site.css_dir | prepend: '/' | prepend: include.site_url %} {% assign js_url = '/' | prepend: site.js_dir | prepend: '/' | prepend: include.site_url %} BetterFormFor
  <%= blocks.render :test_block, collection: [1, 2] %>
Second Before All
First Before All
Second Around All
First Around All
Test Block Wrapper for all
Test Block Wrapper for each item
Second Around for item 1
First Around for item 1
Second Before for item 1
First Before for item 1
Test Block Wrapper for item 1
Second Surround for item 1
First Surround for item 1
Second Prepended block 1
First Prepended block 1
Actual block 1
First Appended block 1
Second Appended block 1
First After for item 1
Second After for item 1
Test Block Wrapper for each item
Second Around for item 2
First Around for item 2
Second Before for item 2
First Before for item 2
Test Block Wrapper for item 2
Second Surround for item 2
First Surround for item 2
Second Prepended block 2
First Prepended block 2
Actual block 2
First Appended block 2
Second Appended block 2
First After for item 2
Second After for item 2
First After All
Second After All