Giter Site home page Giter Site logo

lwd-temp / bobby-tables Goto Github PK

View Code? Open in Web Editor NEW

This project forked from petdance/bobby-tables

0.0 0.0 0.0 513 KB

bobby-tables.com, the site for preventing SQL injections

Home Page: http://bobby-tables.com/

Perl 44.00% CSS 43.18% Makefile 4.91% HTML 3.64% Dockerfile 4.27%

bobby-tables's Introduction

This project is the source code for http://bobby-tables.com/, plus the Perl code that converts it from Markdown format into HTML and uploads it to the server.

Repository layout

  • s/
    • page bodies in Markdown format
  • tt/
    • templates in Template::Toolkit format
  • static/
    • images and styles
  • t/
    • tests
  • build/ (Not stored)
    • output

Requirements

GNU bash, make, gettext-runtime, gettext-tools.

Perl and additional CPAN modules.

For building:

  • File::Slurp
  • Markdent
  • Template

For testing:

  • Test::HTML::Tidy5

Alternatively a Dockerfile is provided which can run the necessary make tasks in a container.

docker build -t bobby-tables .                      # Builds the container
docker run --rm -v $PWD:/app bobby-tables           # Builds the site to the build/ directory
docker run --rm -v $PWD:/app bobby-tables make test # Runs the tests

Contributing page content

  1. Modify templates or page bodies. New pages have to be registered in the file crank.
  2. Run make to build the site and inspect the result in the build directory.
  3. Run make test to check for HTML errors.
  4. Commit/publish changes, see s/index.md.

bobby-tables's People

Contributors

alexhaible avatar andreycha avatar bigpresh avatar brsa avatar coke avatar daxim avatar deadmoose avatar deltaf1 avatar dupuy avatar janihur avatar jasperhorn avatar jcbwlkr avatar justin-gooch avatar kimmel avatar lethal-guitar avatar mangstadt avatar mason-mcglothlin avatar mjangda avatar mrnovalles avatar n0nag0n avatar pcurry avatar petdance avatar pfreitag avatar pioto avatar svenvh avatar theory avatar thiefmaster avatar tswicegood avatar tyil avatar zspitz 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.