Split a newline separated element and do work on each…

15 Mar

Template to split input that has newlines in it.
Note the ‘append-pad’ template is also used (see other post) to nicely space things.

e.g. input is:

John Doe 1 Blacks Rd Beverly Hills California 90210

and you want to pass in something for the right hand side too, you pass it in | seperated.
e.g:

  
    
        
    
    
      
  

Code that actually does the work below:

  
      
      
      
      
        
          
          
          
        
      
      
      
      
      

      
          
              
              
          
      
  
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: