Joey Hess
83703d2f4a
move template documentation to the template directive
...
allow new templates to be created via the inline that lists them
2010-04-23 15:32:39 -04:00
Joey Hess
0e68f76a9a
update
2010-04-23 15:23:34 -04:00
Joey Hess
d1cc7e81c8
use template() rather than rolling it by hand
2010-04-23 15:11:25 -04:00
Joey Hess
78fd3b35a2
allow template pages to not be under templates/
2010-04-23 15:02:07 -04:00
Joey Hess
ee8d237f98
improved error message
2010-04-23 14:50:00 -04:00
Joey Hess
753bfb17a0
switch to using template_depends
...
It now handles all the details of finding a page template that this used to
need to implement.
2010-04-23 14:45:48 -04:00
Joey Hess
d4d7d5ddaf
use same error string as template.pm does
2010-04-23 14:45:02 -04:00
Joey Hess
54898d16d4
allow a bare page name to be specified as a template
2010-04-23 14:44:37 -04:00
Joey Hess
011d88052d
fix logic
2010-04-23 14:00:53 -04:00
Joey Hess
915d5bc326
add
2010-04-22 15:59:04 -04:00
Joey Hess
bbd7e73f64
refactor to remove template_params
...
template_file will be kept separate, since it needs to be memoized
2010-04-22 15:58:06 -04:00
Joey Hess
abd2339312
look for templates in srcdir and underlays, first
...
This entailed changing template_params; it no longer takes the template
filename as its first parameter.
Add template_depends to api and replace calls to template() with
template_depends() in appropriate places, where a dependency should be
added on the template.
Other plugins don't use template(), so will need further work.
Also, includes are disabled for security. Enabling includes only when using
templates from the templatedir would be nice, but would add a lot of
complexity to the implementation.
2010-04-22 15:55:58 -04:00
Joey Hess
23d62f42bd
remove add_templates option
...
Templates are moving into the srcdir, and will also be searched for in
configured underlays, so this is redundant.
2010-04-22 14:35:00 -04:00
Joey Hess
584391aedd
clarify
2010-04-22 14:07:45 -04:00
Joey Hess
ad296f90c3
add
2010-04-22 13:45:25 -04:00
Joey Hess
8dc7f3005e
only remove page from influences when influences are not static
...
This matches what add_depends done
2010-04-22 13:17:45 -04:00
Joey Hess
1f5d1dff61
update
2010-04-22 00:42:53 -04:00
Joey Hess
170725dc3e
update
2010-04-22 00:40:05 -04:00
Joey Hess
56bb1b48e4
format
2010-04-22 00:36:13 -04:00
Joey Hess
3ee571390e
Merge branch 'autotag'
2010-04-22 00:34:03 -04:00
Joey Hess
0db4d920aa
force rebuild from pre 20100422
...
to ensure those wrong massive depends_simple don't linger on systems that
rebuilt for the other reasons already
2010-04-22 00:28:58 -04:00
Joey Hess
738bd2fa1f
note that the new version will have some optimisation fixes
2010-04-22 00:28:21 -04:00
Joey Hess
2b175d7c1f
improved fix for depends_simple_mixup
...
Avoid adding the page matched against as an influence for
currently failing pagespec matches, while still adding
any other influences.
This avoids bloating depends_simple with lots of bogus influences when
matching eg, "!link(done)". It's only necessary for the page being tested
to be an influence of that if the page matches.
2010-04-22 00:18:20 -04:00
Joey Hess
bc6d602609
add influence info for failed metadata matches
...
This is needed so that when a negated pagespec like "!author(foo)"
stops matching, due to the page being changed, ikiwiki knows that
the match was influenced by the page content.
2010-04-22 00:10:13 -04:00
Joey Hess
ef34ea7c05
fix test cases for dynamic influence calculation
2010-04-22 00:07:25 -04:00
Joey Hess
c98414e192
added a test case for this bug
...
Further analysis suggests fixing this might not be as dreadful as I first
thought!
2010-04-21 23:08:54 -04:00
Joey Hess
13325317a3
backlink influence data seems ok
2010-04-21 22:04:03 -04:00
Joey Hess
17a89d3d19
update
2010-04-21 21:57:12 -04:00
Joey Hess
09ff797682
more wrongness
2010-04-21 21:55:12 -04:00
Joey Hess
8cf6b7abf8
link fix
2010-04-21 21:42:18 -04:00
Joey Hess
6c5f315970
argh. head exploding.
2010-04-21 21:38:58 -04:00
Joey Hess
32dd388f8d
indent
2010-04-21 21:38:53 -04:00
Joey Hess
557912c723
my autotag branch seems ready
2010-04-21 20:47:18 -04:00
Joey Hess
d048e9c64a
turn on tag_autocreate by default if tagbase is set
2010-04-21 20:39:20 -04:00
Joey Hess
318134174f
Merge branch 'master' into autotag
2010-04-21 20:32:30 -04:00
Joey Hess
0bc76be8a7
reword news
2010-04-21 20:32:19 -04:00
Joey Hess
20052f8882
Merge branch 'master' into autotag
...
Conflicts:
IkiWiki/Plugin/tag.pm
2010-04-21 20:19:06 -04:00
Joey Hess
129cd00bdb
remove broken ./tag support
...
The commit that added the (working) support for using /tag to override
tagbase also tried to make ./tag work. Problem is, tags are links,
and ./foo is not a valid link (though I think there's a wishlist about it).
So, using ./tag really resulted in tag creation links that led to a
"bad page name" error. And even if the tag were created in the right place,
the link didn't go to it.
2010-04-21 20:15:11 -04:00
Joey Hess
752ccf8b48
fixes
2010-04-21 20:08:23 -04:00
Joey Hess
0e2b5ebe31
clarify
2010-04-21 19:49:11 -04:00
Joey Hess
789e68a8b1
Merge branch 'master' into autotag
...
Conflicts:
IkiWiki/Plugin/tag.pm
2010-04-21 19:47:38 -04:00
Joey Hess
77779dc4a0
pass pagespec parameters along from match_tagged
2010-04-21 19:46:27 -04:00
Joey Hess
673d6c9580
add missing undef guard in derel
2010-04-21 19:45:56 -04:00
Joey Hess
1a09cddd39
fix false positive in link_types_changed
...
loadindex does not bother populating oldtypedlinks if there is no link
type. However, the code in link_types_changed assumed that if oldtypedlinks
is not defined, and typedlinks is, they must differ.
2010-04-21 19:42:00 -04:00
Joey Hess
8cde2365e4
add separate template variable for tag page and sanitize displayed tag name
2010-04-21 19:13:03 -04:00
Joey Hess
167964b686
remember autofiles that were tried and failed to be added
...
This way, if an autofile is registered for a file that already exists,
it is remembered that it was tried, and it doesn't get recreated when
removed.
2010-04-21 16:41:36 -04:00
Joey Hess
1336a3270b
response
2010-04-21 16:36:58 -04:00
Joey Hess
f03d3d8567
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
2010-04-21 16:34:50 -04:00
Joey Hess
463ba55dce
note re includes
2010-04-21 16:33:03 -04:00
http://smcv.pseudorandom.co.uk/
ffe9fd8eb1
suppressing auto-creation can be quite counter-intuitive
2010-04-21 20:30:14 +00:00