mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2025-05-04 05:17:08 +01:00
Support CSS embedding vs. linking.
This commit is contained in:
@ -118,8 +118,10 @@ Generic template helper definitions for HackMyResume / FluentCV.
|
||||
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">';
|
||||
styleSheet: function( file, options ) {
|
||||
return ( this.opts.css === 'link') ?
|
||||
'<link href="' + file + '" rel="stylesheet" type="text/css">' :
|
||||
'<style>' + this.cssInfo.data + '</style>';
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -40,6 +40,7 @@ Definition of the HandlebarsGenerator class.
|
||||
RAW: json,
|
||||
filt: opts.filters,
|
||||
cssInfo: cssInfo,
|
||||
opts: opts,
|
||||
headFragment: opts.headFragment || ''
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user