DailyJS

Dynamic-json-resume, JSnoX

Alex R. Young

Subscribe

@dailyjs

Facebook

Google+

JSON react careers

Dynamic-json-resume, JSnoX

Posted by Alex R. Young on .
Featured

JSON react careers

Dynamic-json-resume, JSnoX

Posted by Alex R. Young on .

Dynamic-json-resume

I don't know about you, but I hate putting together my résumé. I start to focus too much on the presentation even though you're meant to keep it simple. Dynamic-json-resume (GitHub: jrm2k6/dynamic-json-resume, License: MIT, npm: json-resume-dynamic) by Jeremy Dagorn is a module for generating résumés from a simple JSON format. You can output PDFs, and use it with a Node application.

Because your CV is now represented by a structured data format, you can reuse it in other places. For example, your personal website could render it in a sidebar.

James Long's article, Removing User Interface Complexity, or Why React is Awesome, inspired the project. React seems like the perfect way to manipulate and render your JSON CV.

JSnoX

What do you do if you like React but dislike JSX? Shawn Price sent in his coworker's project, JSnoX (GitHub: af/JSnoX, License: MIT, npm: jsnox), which provides a simple React markup API that works in pure JavaScript:

var d = require('jsnox')(React)  
var LoginForm = React.createClass({  
  submitLogin: function() { ... },

  render: function() {
    return d('form[method=POST]', { onSubmit: this.submitLogin }, [
      d('h1.form-header', 'Login'),
      d('input:email[name=email]', { placeholder: 'Email' }),
      d('input:password[name=pass]', { placeholder: 'Password' }),
      d(MyOtherComponent, { myProp: 'foo' }),
      d('button:submit', 'Login')
    ]);
  }
});

This API sidesteps the issue of JavaScript's lack of multiline string handling for embedded templates, while not requiring too much fiddly syntax for handling DOM attributes.