Brennen Bearnes
b1e9af6cbc
Merge branch 'master' of p1k3.com:/usr/local/src/wrt
8 years ago
Brennen Bearnes
d1d1ad712b
use topiclinks instead of datestamp for topic list class
8 years ago
Brennen Bearnes
f5825a53f8
add topic list to entries
This is a fairly p1k3-specific thing.
8 years ago
Brennen Bearnes
899abe0528
.gitignore vim swapfiles
8 years ago
Brennen Bearnes
18f15b4cfc
allow `-` in entry names, use .prop for properties
8 years ago
Brennen Bearnes
35b9a9d1b3
latest README
8 years ago
Brennen Bearnes
ba84987f3a
simplify datestamps
8 years ago
Brennen Bearnes
7225004f5b
add wrt-noexpand
8 years ago
Brennen Bearnes
e00489173a
remove a sorta-extraneous trailing slash on contents
8 years ago
Brennen Bearnes
1c5e0befc1
add example/files/include_me needed for tests
8 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.
8 years ago
Brennen Bearnes
62d376038f
findprop: use current directory instead of hardcoded ~/p1k3 path
8 years ago
Brennen Bearnes
30ae840c9f
addprop and findprop subcommands for dealing with entry properties
These used to live in bpb-kit; moving them in here since they're specific
to the wrt format.
8 years ago
Brennen Bearnes
2b7399156c
split wrt utility into git-style subcommands
Now uses:
wrt display
wrt render-all
wrt fcgi
8 years ago
Brennen Bearnes
129eb1d21d
bin/wrt: a couple of fiddling comments
8 years ago
Brennen Bearnes
87a23161ec
extract http_header stuff from WRT module; bump version number to 2.0
8 years ago
Brennen Bearnes
8f8df77333
zap extraneous Pod::Usage import
8 years ago
Brennen Bearnes
cfa1f5c870
switch to wrt.json for configuration
8 years ago
Brennen Bearnes
b5b746a06f
add XML::Feed and CGI::Fast to dependencies
8 years ago
Brennen Bearnes
b1b6148fb9
make wrt.fcgi work, more or less
8 years ago
Brennen Bearnes
48c1d13d72
use WRT::Date in WRT.pm
8 years ago
Brennen Bearnes
41c225eb47
move example stuff into its own dir; tweak tests
8 years ago
Brennen Bearnes
38b4d0dcd9
scrap iso_date() test (also, wtf?)
8 years ago
Brennen Bearnes
08f1d11792
escape braces in variable interpolation regexp
8 years ago
Brennen Bearnes
45572851be
Merge pull request #1 from brennen/wrt
Rename to wrt
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
bfddb92cf2
bin/wrot: add --stdin flag
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
9 years ago
Brennen Bearnes
b94c0dd30c
bin/display: usage text, render loop refactor
9 years ago
Brennen Bearnes
c97b6469c4
handle dirs like Thumbs better
9 years ago
Brennen Bearnes
07ae4ba488
dump path errors from bin/display
9 years ago
Brennen Bearnes
3093aa90ab
delete gallery features
9 years ago
Brennen Bearnes
253f977964
move find() call out to a sub; count render/copy separately
9 years ago
Brennen Bearnes
a18b971784
bin/display
Rolls in render.pl stuff from p1k3. Now gets deployed system-wide,
to /usr/local/bin.
9 years ago
Brennen Bearnes
61b75ef000
warn instead of dying on unreachable file
9 years ago
Brennen Bearnes
ab42ca9531
stub icon tests
9 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.
9 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.
9 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.
9 years ago
Brennen Bearnes
a51291f4d9
fix bogus trailing slash in datestamps
9 years ago
Brennen Bearnes
900dd495e4
a space before a curly brace
9 years ago
Brennen Bearnes
7618ae425f
punctuation bitching on some comments
9 years ago
Brennen Bearnes
5310e07336
add test Thumbs to .gitignore
9 years ago
Brennen Bearnes
7e66c60612
adding trailing slashes to paths
9 years ago
Brennen Bearnes
bde95de822
scrap some misc templates which are duplicated in p1k3 repo
9 years ago
Brennen Bearnes
5cb5860787
Display.pm / README.pod: add travis-ci badge
9 years ago
Brennen Bearnes
eb73062935
.gitignore: add MANIFEST.bak
9 years ago
Brennen Bearnes
c8bdf458ee
scrap test.pl in favor of ./Build test
9 years ago