Git Product home page Git Product logo

csv_to_site's Introduction

So you've only got to run a single call in your terminal (open a new terminal window and it should open in your home directory by default):

ruby <path to this repo>/spec/fixtures/basic-test.csv <path to this repo>/spec/fixtures/template-blast-sked.html.erb <path to wherever you want your output>.html

This is a call to use ruby to run a script found at <path to this repo>/csv_to_site. This script takes three arguments: a csv, an erb template, and a file to write. Even if the terminal is unfamiliar you'll be able to get by with this single command.

If you want to use a different CSV, you can change the csv argument in the command. If you want to change the template you edit the .erb file (or pass in a path to a different one). Erb (Embedded Ruby) is just like the template you wrote before, just with <% %> and <%= %> to put in code and fields, respectively.

Adding more fields to the csv is a little trickier and will involve editing the movie.rb file. That file has a pattern that should be possible to copy (the weird fields are the ones that can only be true or false: filmmaker_attending and special_guest_attending). The new field header should be the same as the field you add to movie.rb.

csv_to_site's People

Contributors

armatures avatar charliebevis avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.