Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jsonresume-theme-polymer

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonresume-theme-polymer - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

polymer-tutorial-master/.bowerrc

35

index.js
var fs = require("fs");
var Handlebars = require("handlebars");
var gravatar = require('gravatar');
var vulcan = require('vulcanize');
var path = require('path');
var options = {};
options.input = path.resolve(path.join('polymer-tutorial-master','finished','index.html'));
options.output = __dirname + '/vulcanized.html';
//options.input = path.resolve('resume.template');
function render(resume) {
var css = fs.readFileSync(__dirname + "/style.css", "utf-8");
var template = fs.readFileSync(__dirname + "/resume.template", "utf-8");
return Handlebars.compile(template)({
if(resume.basics && resume.basics.email) {
resume.basics.gravatar = gravatar.url(resume.basics.email, {
s: '100',
r: 'pg',
d: 'mm'
});
}
var resumeDataTemplate = fs.readFileSync(path.resolve(path.join('polymer-tutorial-master','finished','resume-data-template.html')), "utf-8");
var resumeData = Handlebars.compile(resumeDataTemplate)({resume: JSON.stringify(resume)});
console.log(JSON.stringify(resume))
fs.writeFileSync(path.resolve(path.join(__dirname, 'polymer-tutorial-master','finished','resume-data.html')), resumeData);
/*return Handlebars.compile(template)({
css: css,
resume: resume
});*/
console.log('vulcanize');
vulcan.setOptions(options, function(err) {
//console.log(arguments);
vulcan.processDocument();
});
var file = fs.readFileSync(__dirname + '/vulcanized.html', 'utf8');
// console.log(file);
return file;
}

@@ -12,0 +45,0 @@

6

package.json
{
"name": "jsonresume-theme-polymer",
"version": "0.0.2",
"version": "0.0.3",
"description": "Boilerplate theme for JSON Resume",

@@ -12,5 +12,7 @@ "author": "Mattias Erming",

"dependencies": {
"gravatar": "^1.0.6",
"handlebars": "^2.0.0-alpha.4",
"resume-schema": "jsonresume/resume-schema"
"resume-schema": "jsonresume/resume-schema",
"vulcanize": "^0.4.1"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc