Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
<% if interface_type == 'alias' -%> DEVICE=<%= interface %>:<%= ifnum %> <% if ifstate == 'present' -%> ONPARENT=yes <% elsif ifstate == 'absent' -%> ONPARENT=no <% end -%> <% else -%> DEVICE=<%= interface %> <% if ifstate == 'present' -%> ONBOOT=yes <% elsif ifstate == 'absent' -%> ONBOOT=no <% end -%> <% end -%> <% if interface_type != 'tap' && interface_type != 'slave' -%> <% if name.match(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/) -%> IPADDR=<%= name %> NETMASK=<%= netmask %> <% end -%> <% end -%> <% if bondopts != '' && (interface_type == 'bond' || interface_type == 'tap') -%> BONDING_OPTS="<%= bondopts %>" <% end -%> <% if interface_type == 'slave' -%> MASTER=<%= master %> SLAVE=yes <% end -%> BOOTPROTO=none USERCTL=no
This paste will be private.
From the Design Piracy series on my blog: