Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

dzucconi/jquery.cv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A jQuery plugin that uses a Google Docs Spreadsheet as input in constructing a relatively normative CV-style output. Documents require "Type", "Category", and "Year" columns to group content. "Type" and "Category" columns are related to one another. Requires jQuery, jQuery.csv, and Underscore.

Documenation

Basic usage:

https://docs.google.com/spreadsheet/pub?key=0AsxYR5Y3N6DjdHJWZDNNcjhmZ0ZSb2hFTjU0MDBjZ2c
$("#element").cv({
  key: "0AsxYR5Y3N6DjdHJWZDNNcjhmZ0ZSb2hFTjU0MDBjZ2c"
});

<div class="cv" data-key="0AsxYR5Y3N6DjdHJWZDNNcjhmZ0ZSb2hFTjU0MDBjZ2c"></div>
<div class="cv" data-key="0AsxYR5Y3N6DjdHJWZDNNcjhmZ0ZSb2hFTjU0MDBjZ2c"></div>
$(".cv").each(function() {
  $(this).cv({ key: $(this).data("key") });
});

Use your own templates:

$("#element").cv({
  key: "0AsxYR5Y3N6DjdHJWZDNNcjhmZ0ZSb2hFTjU0MDBjZ2c",
  templates: {
    category: _.template("<p><%= category.name %></p>")
  }
});