Created
          August 22, 2016 21:17 
        
      - 
      
- 
        Save adg29/f312d6fab93652944a8a1026142491b1 to your computer and use it in GitHub Desktop. 
    Concat Handlebars helper
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | module.exports.register = function (Handlebars, options) { | |
| Handlebars.registerHelper('concat', function() { | |
| var outStr = ''; | |
| for(var arg in arguments){ | |
| if(typeof arguments[arg]!='object'){ | |
| outStr += arguments[arg]; | |
| } | |
| } | |
| return outStr; | |
| }); | |
| }; | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
Thanks.