mirror of
				https://github.com/JuanCanham/HackMyResume.git
				synced 2025-10-31 05:07:26 +00:00 
			
		
		
		
	Add {{styleSheet}} helper (placeholder).
This commit is contained in:
		| @@ -1,6 +1,6 @@ | ||||
| /** | ||||
| Generic template helper definitions for FluentCV. | ||||
| @license MIT. Copyright (c) 2015 James Devlin / FluentDesk. | ||||
| Generic template helper definitions for HackMyResume / FluentCV. | ||||
| @license MIT. See LICENSE.md for details. | ||||
| @module generic-helpers.js | ||||
| */ | ||||
|  | ||||
| @@ -114,6 +114,14 @@ Generic template helper definitions for FluentCV. | ||||
|       if (lhs || rhs) return options.fn(this); | ||||
|     }, | ||||
|  | ||||
|     /** | ||||
|     Conditional stylesheet link. Either display the link or embed the stylesheet | ||||
|     via <style></style> tag. | ||||
|     */ | ||||
|     styleSheet: function( file ) { | ||||
|       return '<link href="' + file + '" rel="stylesheet" type="text/css">'; | ||||
|     }, | ||||
|  | ||||
|     /** | ||||
|     Perform a generic comparison. | ||||
|     See: http://doginthehat.com.au/2012/02/comparison-block-helper-for-handlebars-templates | ||||
|   | ||||
		Reference in New Issue
	
	Block a user