Brennen Bearnes
1c5e0befc1
add example/files/include_me needed for tests
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
62d376038f
findprop: use current directory instead of hardcoded ~/p1k3 path
7 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.
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
129eb1d21d
bin/wrt: a couple of fiddling comments
7 years ago
Brennen Bearnes
87a23161ec
extract http_header stuff from WRT module; bump version number to 2.0
7 years ago
Brennen Bearnes
8f8df77333
zap extraneous Pod::Usage import
7 years ago
Brennen Bearnes
cfa1f5c870
switch to wrt.json for configuration
7 years ago
Brennen Bearnes
b5b746a06f
add XML::Feed and CGI::Fast to dependencies
7 years ago
Brennen Bearnes
b1b6148fb9
make wrt.fcgi work, more or less
7 years ago
Brennen Bearnes
48c1d13d72
use WRT::Date in WRT.pm
7 years ago
Brennen Bearnes
41c225eb47
move example stuff into its own dir; tweak tests
7 years ago
Brennen Bearnes
38b4d0dcd9
scrap iso_date() test (also, wtf?)
7 years ago
Brennen Bearnes
08f1d11792
escape braces in variable interpolation regexp
7 years ago
Brennen Bearnes
45572851be
Merge pull request #1 from brennen/wrt
Rename to wrt
7 years ago
Brennen Bearnes
5c59445d6c
tidy README a bit; zap a swapfile
7 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.
7 years ago
Brennen Bearnes
bfddb92cf2
bin/wrot: add --stdin flag
7 years ago
Brennen Bearnes
d94e4dbbf4
first pass at renaming display and Display.pm to wrot / WROT.pm
7 years ago
Brennen Bearnes
afc11c3f80
Display::HTML: sort attributes, use HTML::Entities to escape same
8 years ago
Brennen Bearnes
b94c0dd30c
bin/display: usage text, render loop refactor
8 years ago
Brennen Bearnes
c97b6469c4
handle dirs like Thumbs better
8 years ago
Brennen Bearnes
07ae4ba488
dump path errors from bin/display
8 years ago
Brennen Bearnes
3093aa90ab
delete gallery features
8 years ago
Brennen Bearnes
253f977964
move find() call out to a sub; count render/copy separately
8 years ago
Brennen Bearnes
a18b971784
bin/display
Rolls in render.pl stuff from p1k3. Now gets deployed system-wide,
to /usr/local/bin.
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
5310e07336
add test Thumbs to .gitignore
8 years ago
Brennen Bearnes
7e66c60612
adding trailing slashes to paths
8 years ago
Brennen Bearnes
bde95de822
scrap some misc templates which are duplicated in p1k3 repo
8 years ago
Brennen Bearnes
5cb5860787
Display.pm / README.pod: add travis-ci badge
8 years ago
Brennen Bearnes
eb73062935
.gitignore: add MANIFEST.bak
8 years ago
Brennen Bearnes
c8bdf458ee
scrap test.pl in favor of ./Build test
8 years ago
Brennen Bearnes
832bf247e6
.gitignore
8 years ago
Brennen Bearnes
0e6754fd86
start removing test dependencies on p1k3 repo
- archives -> test_archives
- add archives/gallery_test/
8 years ago
Brennen Bearnes
0a783b99a3
Build.PL: add Imager to requirements
8 years ago
Brennen Bearnes
664ea4ffda
Build.PL: add Image::Size to requires
8 years ago
Brennen Bearnes
72c1cf8dcd
mv travis.yml .travis.yml
It helps to read the error message.
8 years ago
Brennen Bearnes
f75b7f32fe
add travis.yml
8 years ago
Brennen Bearnes
fff86a3912
test.pl: kill excess `use lib`
8 years ago
Brennen Bearnes
0041c7e0ca
remove a couple of old stub files, move linkdump.pl to p1k3 repo
8 years ago
Brennen Bearnes
41e7eb62ae
installation instructions
8 years ago