• Stars
    star
    247
  • Rank 164,117 (Top 4 %)
  • Language
    Perl
  • Created about 15 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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::Slurper
  • 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.

More Repositories

1

altbox

Website for altbox.dev, the alternative toolbox for developers
HTML
48
star
2

tidyp

tidyp, a fork of the original tidy
C
36
star
3

html-tidy

HTML::Tidy is no longer being maintained. Please see the new project https://github.com/petdance/html-tidy5
Perl
31
star
4

htmlparsing

htmlparsing.com, a website devoted to helping people parse HTML correctly
CSS
30
star
5

file-next

File::Next, a file finding module for Perl 5
Perl
22
star
6

webservice-solr

Module to interface with the Solr webservice (Previously at bricas/webservice-solr)
Perl
21
star
7

test-www-mechanize

Test::WWW::Mechanize, a Perl object for testing web pages
Perl
17
star
8

perl-critic-bangs

Perl::Critic::Bangs -- Extra policies for Perl::Critic
Perl
11
star
9

html-lint

HTML::Lint, the Perl module for HTML checking
Perl
10
star
10

jerkcode

Source code for jerkcode.com
8
star
11

asksmart

A guide to asking for help, but without celebrating rudeness as ESR's "How To Ask Questions The Smart Way" does
8
star
12

scraps

My code junk drawer
Perl
6
star
13

betterthangrep

THIS PROJECT IS DEAD. GO TO
Perl
5
star
14

html-tidy5

HTML::Tidy5, Perl module for checking HTML5, based on https://github.com/htacg/tidy-html5
Perl
5
star
15

template-timer

Template::Timer, a Perl plugin for Template Toolkit for timing and benchmarking
Perl
5
star
16

hwd

The How We Doin' project management tool
Perl
4
star
17

carp-assert-more

Carp::Assert::More, handy assertion functions for Perl
Perl
2
star
18

file-find-wanted

File::Find::Wanted, a CPAN module for simplifying File::Find
Perl
1
star
19

test2-tools-expressive

Test2::Tools::Expressive -- expressive tools for Perl's Test2 framework
Perl
1
star
20

tps-php

TAP::Parser::SourceHandler::PHP -- for running PHP tests under prove
Perl
1
star
21

text-sparkline

Perl
1
star
22

noun1verb2

noun1verb2
1
star
23

list-cycle

List::Cycle, a simple Perl class for cycling through values
Perl
1
star
24

html-scrape

HTML::Scrape, helpers for scraping HTML with Perl
HTML
1
star
25

template-plugin-package

Template::Plugin::Package -- Allow calling functions in arbitrary packages
Perl
1
star