Brennen Bearnes
7d314b773d
v3.4.2: add [0-9] to acceptable sub-entry characters
This will probably eventually bite me, since it could overlap with other
entry display logic, but it doesn't seem to break anything at the moment.
7 years ago
Brennen Bearnes
22dfe40533
v3.3.1: die on attempting to include a directory
7 years ago
Brennen Bearnes
218c5fff70
include datestamps in feed
7 years ago
Brennen Bearnes
c154ade133
v3.3.0: list topics in datestamp
7 years ago
Brennen Bearnes
d1d1ad712b
use topiclinks instead of datestamp for topic list class
7 years ago
Brennen Bearnes
f5825a53f8
add topic list to entries
This is a fairly p1k3-specific thing.
7 years ago
Brennen Bearnes
18f15b4cfc
allow `-` in entry names, use .prop for properties
7 years ago
Brennen Bearnes
ba84987f3a
simplify datestamps
7 years ago
Brennen Bearnes
7225004f5b
add wrt-noexpand
7 years ago
Brennen Bearnes
e00489173a
remove a sorta-extraneous trailing slash on contents
7 years ago
Brennen Bearnes
a069a79628
v3.0.0: support for includes, change root_dir semantics, add entry_dir
- adds include_process() in WRT::Markup
- moves eval_perl() into WRT::Markup. The way object instances are
composed (and instance methods called) here still feels pretty janky,
and this does nothing to help the situation.
- changes all existing $root_dir instances to $entry_dir; adds a $root_dir
which represents the root of the archive (top-level folder containing
the wrt.json file)
I'd be worried about the $root_dir change if I thought this module had a
single other user in the wild, but I strongly doubt that it does. If I
am wrong and you are that user, I apologize sincerely in advance.
The include feature still has fairly unsettled semantics, but it gets the
whole thing much closer to a usable site generator.
7 years ago
Brennen Bearnes
2b7399156c
split wrt utility into git-style subcommands
Now uses:
wrt display
wrt render-all
wrt fcgi
7 years ago
Brennen Bearnes
87a23161ec
extract http_header stuff from WRT module; bump version number to 2.0
7 years ago
Brennen Bearnes
cfa1f5c870
switch to wrt.json for configuration
7 years ago
Brennen Bearnes
48c1d13d72
use WRT::Date in WRT.pm
8 years ago
Brennen Bearnes
08f1d11792
escape braces in variable interpolation regexp
8 years ago
Brennen Bearnes
5c59445d6c
tidy README a bit; zap a swapfile
8 years ago
Brennen Bearnes
c729b1d07f
naw let's go with wrt instead of wrot
It's shorter and the letters are all right there on the keyboard.
8 years ago
Brennen Bearnes
d94e4dbbf4
first pass at renaming display and Display.pm to wrot / WROT.pm
8 years ago
Brennen Bearnes
afc11c3f80
Display::HTML: sort attributes, use HTML::Entities to escape same
8 years ago
Brennen Bearnes
3093aa90ab
delete gallery features
8 years ago
Brennen Bearnes
61b75ef000
warn instead of dying on unreachable file
8 years ago
Brennen Bearnes
ab42ca9531
stub icon tests
8 years ago
Brennen Bearnes
a7a5688b73
try this s/-T/-f/ thing again
There's nothing quite like finding a stupid bug in your stupid code you
wrote when you were like 20.
Anyway this turns out to be a nearly-pointless micro-optimization, but in
principle I think it's not wrong.
Stupid.
8 years ago
Brennen Bearnes
1aa9437052
Revert "remove or replace -T file tests with -f"
This reverts commit 4767c623c7
.
Something is broken - only rendering a single year.
8 years ago
Brennen Bearnes
4767c623c7
remove or replace -T file tests with -f
It appears to be a _lot_ faster to check "is a regular file" (knowable
just from stat, presumably) than a heuristic for "is ASCII or UTF-8", and
it's completely reasonable to treat regular files matching entry patterns
as markup blobs.
8 years ago
Brennen Bearnes
a51291f4d9
fix bogus trailing slash in datestamps
8 years ago
Brennen Bearnes
900dd495e4
a space before a curly brace
8 years ago
Brennen Bearnes
7618ae425f
punctuation bitching on some comments
8 years ago
Brennen Bearnes
7e66c60612
adding trailing slashes to paths
8 years ago
Brennen Bearnes
5cb5860787
Display.pm / README.pod: add travis-ci badge
8 years ago
Brennen Bearnes
41e7eb62ae
installation instructions
8 years ago
Brennen Bearnes
0314834f15
linkdump.pl, linkdump in template
9 years ago
Brennen Bearnes
74accc564d
a datestamp that takes entry fragments into account
This whole sub is gross.
9 years ago
Brennen Bearnes
54ef2298d8
use HTML::Entities, use for $title
Really HTML::Entities should be exposed to templates and used there,
sorta like SparkLib\Template offers $h().
9 years ago
Brennen Bearnes
0494c05c09
fulltext: all entries, in order
Can be a lot, with a big archive.
9 years ago
Brennen Bearnes
5260c8bee9
tidy some markup comments, etc.
10 years ago
Brennen Bearnes
afd1c6a364
wala stuff TOTALLY not visible if no rootdir
10 years ago
Brennen Bearnes
e36be446c8
don't display wala stuff without a root dir
10 years ago
Brennen Bearnes
b7442b1163
turn on extra footnote syntax in Discount
...mostly what this does is override the defaults of no headers / no
smartypants features.
10 years ago
Brennen Bearnes
93464d0c10
fiddle with lightweight markup functions
Just does an inline substitution for <textile> and <markdown> stuff.
Also adds a bit of commentary.
10 years ago
Brennen Bearnes
61c90d68db
default link titles in link_bar()
10 years ago
Brennen Bearnes
ee4bf309d2
use Text::Markdown::Discount for both display and wala
- strip HTML::Defang
- get rid of old wala markup code
- use Discount for both markup modules (with NOHTML flag in wala)
10 years ago
Brennen Bearnes
6f17e5103a
require Text::Markdown 1.0.31
...also test that it'll render a snippet.
10 years ago
Brennen Bearnes
e3701d09d9
sundry uncollected changes from p1k3.com
10 years ago
Brennen Bearnes
d2a1668dfc
h3, h4 -> h1, h2
Start using top-level headers for entry files.
12 years ago
Brennen Bearnes
9f0e3c16f9
test, test
12 years ago
Brennen Bearnes
ce5efa00b2
give get_date() some context-awareness
12 years ago
Brennen Bearnes
50f86e05f1
move a couple of things into Display::Util
12 years ago
Brennen Bearnes
bf5e79c7db
fix a few minor markup bugs, general cleanup
12 years ago