Changeset 82
Legend:
- Unmodified
- Added
- Removed
-
trunk/CHANGELOG
r80 r82 6 6 * New Markaby::Fragment class adds much flexibility. If it discovers you are using a tag as a string, 7 7 the tag is removed from the stream. (<tt>div { strong("Real") + " Giraffes" }</tt>) 8 * The prevailing rule now is: if you want it escaped, pass it to a block. If not, pass it as an arg.8 * The prevailing rule now is: if you want it escaped, pass it as an arg. If not, pass it to a block. 9 9 * Again, escaped: <tt>h1("Me & You Have a Giraffe")</tt> 10 10 * And, not escaped: <tt>h1 { "<a href='/'>Home</a>" }</tt> -
trunk/README
r80 r82 70 70 of the Markaby::Builder object. 71 71 72 This doesn't effect Rails users, but when used in regular Ruby code, it can72 This doesn't affect Rails users, but when used in regular Ruby code, it can 73 73 be a bit disorienting. You are recommended to put your Markaby code in a 74 74 module where it won't mix with anything. … … 232 232 the String back and nothing will be output. 233 233 234 p { "Total is: #{@helper .number_to_human_size @file_bytes}" }234 p { "Total is: #{@helpers.number_to_human_size @file_bytes}" } 235 235 236 236 Conversely, you may call instance variables from your controller by using