1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-11-23 00:40:10 +00:00

Add {{styleSheet}} helper (placeholder).

This commit is contained in:
hacksalot 2015-12-30 18:19:00 -05:00
parent 22554c61c5
commit d4e0a0fa05

View File

@ -1,6 +1,6 @@
/** /**
Generic template helper definitions for FluentCV. Generic template helper definitions for HackMyResume / FluentCV.
@license MIT. Copyright (c) 2015 James Devlin / FluentDesk. @license MIT. See LICENSE.md for details.
@module generic-helpers.js @module generic-helpers.js
*/ */
@ -114,6 +114,14 @@ Generic template helper definitions for FluentCV.
if (lhs || rhs) return options.fn(this); 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. Perform a generic comparison.
See: http://doginthehat.com.au/2012/02/comparison-block-helper-for-handlebars-templates See: http://doginthehat.com.au/2012/02/comparison-block-helper-for-handlebars-templates