diff --git a/src/eng/generic-helpers.js b/src/eng/generic-helpers.js
index 26c03dc..a930933 100644
--- a/src/eng/generic-helpers.js
+++ b/src/eng/generic-helpers.js
@@ -118,8 +118,10 @@ Generic template helper definitions for HackMyResume / FluentCV.
Conditional stylesheet link. Either display the link or embed the stylesheet
via tag.
*/
- styleSheet: function( file ) {
- return '';
+ styleSheet: function( file, options ) {
+ return ( this.opts.css === 'link') ?
+ '' :
+ '';
},
/**
diff --git a/src/eng/handlebars-generator.js b/src/eng/handlebars-generator.js
index 71dbf58..27a8f7d 100644
--- a/src/eng/handlebars-generator.js
+++ b/src/eng/handlebars-generator.js
@@ -40,6 +40,7 @@ Definition of the HandlebarsGenerator class.
RAW: json,
filt: opts.filters,
cssInfo: cssInfo,
+ opts: opts,
headFragment: opts.headFragment || ''
});
diff --git a/src/index.js b/src/index.js
index d2f99cf..9352d49 100644
--- a/src/index.js
+++ b/src/index.js
@@ -91,6 +91,7 @@ function getOpts( args ) {
theme: args.t || 'modern',
format: args.f || 'FRESH',
prettify: !noPretty,
- silent: args.s || args.silent
+ silent: args.s || args.silent,
+ css: args.css || 'embed'
};
}
diff --git a/src/verbs/generate.js b/src/verbs/generate.js
index eecdc9a..d3819a7 100644
--- a/src/verbs/generate.js
+++ b/src/verbs/generate.js
@@ -49,6 +49,7 @@ Implementation of the 'generate' verb for HackMyResume.
//_opts = extend( true, _opts, opts );
_opts.theme = (opts.theme && opts.theme.toLowerCase().trim())|| 'modern';
_opts.prettify = opts.prettify === true ? _opts.prettify : false;
+ _opts.css = opts.css;
// Load the theme...
var tFolder = verify_theme( _opts.theme );