Changeset 82

Show
Ignore:
Timestamp:
10/09/2006 13:52:01 (2 years ago)
Author:
tec
Message:
  • CHANGELOG: correct string escaping usage
  • README: fix typos
Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/CHANGELOG

    r80 r82  
    66* New Markaby::Fragment class adds much flexibility.  If it discovers you are using a tag as a string, 
    77  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. 
    99* Again, escaped: <tt>h1("Me & You Have a Giraffe")</tt> 
    1010* And, not escaped: <tt>h1 { "<a href='/'>Home</a>" }</tt> 
  • trunk/README

    r80 r82  
    7070of the Markaby::Builder object. 
    7171 
    72 This doesn't effect Rails users, but when used in regular Ruby code, it can 
     72This doesn't affect Rails users, but when used in regular Ruby code, it can 
    7373be a bit disorienting.  You are recommended to put your Markaby code in a 
    7474module where it won't mix with anything. 
     
    232232the String back and nothing will be output. 
    233233 
    234   p { "Total is: #{@helper.number_to_human_size @file_bytes}" } 
     234  p { "Total is: #{@helpers.number_to_human_size @file_bytes}" } 
    235235 
    236236Conversely, you may call instance variables from your controller by using