mirror of
				https://github.com/JuanCanham/HackMyResume.git
				synced 2025-10-31 13:17:26 +00:00 
			
		
		
		
	Merge pull request #191 from ryneeverett/theme-helpers
Register handlebars helpers in themes. Fix #158.
This commit is contained in:
		
							
								
								
									
										8
									
								
								dist/core/fresh-theme.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								dist/core/fresh-theme.js
									
									
									
									
										vendored
									
									
								
							| @@ -95,7 +95,7 @@ Definition of the FRESHTheme class. | ||||
|   /* Load and parse theme source files. */ | ||||
|  | ||||
|   _load = function(formatsHash) { | ||||
|     var copyOnly, fmts, major, that, tplFolder; | ||||
|     var copyOnly, fmts, jsFiles, major, that, tplFolder; | ||||
|     that = this; | ||||
|     major = false; | ||||
|     tplFolder = PATH.join(this.folder, 'src'); | ||||
| @@ -124,6 +124,12 @@ Definition of the FRESHTheme class. | ||||
|         } | ||||
|       } | ||||
|     }); | ||||
|     jsFiles = fmts.filter(function(fmt) { | ||||
|       return fmt && (fmt.ext === 'js'); | ||||
|     }); | ||||
|     this.jsFiles = jsFiles.map(function(jsf) { | ||||
|       return jsf['path']; | ||||
|     }); | ||||
|     return formatsHash; | ||||
|   }; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user