Commit Graph

12952 Commits (1e36ed1fe8cc4dd79a9b1831aec9690769952d92)

Author SHA1 Message Date
Joey Hess df012e54c7 chomp template values
Before the template reorg, this was done by a template filter.
2010-04-24 01:13:58 -04:00
Joey Hess c0b2334815 reword, reorg, add example 2010-04-24 01:13:37 -04:00
Joey Hess 998f47ed13 Merge branch 'master' into templatemove 2010-04-24 00:55:09 -04:00
Joey Hess e90d67d3c9 Moved javascript files under the ikiwiki/ directory, to avoid cluttering the top of the web root. This is another things that requires a wiki rebuild on upgrade to this version. 2010-04-24 00:54:59 -04:00
Joey Hess 39d4bfde6b Merge branch 'master' into templatemove 2010-04-24 00:47:54 -04:00
Joey Hess b28323e76a fix caps 2010-04-24 00:47:46 -04:00
Joey Hess 8a56df576a Merge branch 'master' into templatemove 2010-04-24 00:46:17 -04:00
Joey Hess be3d754320 remove paragraph about old style directives, it's been long enough 2010-04-24 00:45:54 -04:00
Joey Hess a46e178932 add link to templates page 2010-04-24 00:43:45 -04:00
Joey Hess 05517a5426 wording 2010-04-24 00:41:52 -04:00
Joey Hess 9976abe63c typo 2010-04-23 17:43:29 -04:00
Joey Hess 5fc6e56eb8 changelog/NEWS update for template changes 2010-04-23 17:41:24 -04:00
Joey Hess 1473bf84c5 update re template change 2010-04-23 17:38:37 -04:00
Joey Hess 33b0a69e90 improve attachment example 2010-04-23 17:36:07 -04:00
Joey Hess 9b112cc986 add test case to ensure all templates are documented 2010-04-23 17:23:31 -04:00
Joey Hess 6c64ce0336 update news for template change 2010-04-23 17:01:22 -04:00
Joey Hess e8a23c299e Merge branch 'master' into templatemove 2010-04-23 16:48:53 -04:00
Joey Hess d5c5fef363 update 2010-04-23 16:48:37 -04:00
Joey Hess 7bba522545 Merge branch 'master' into templatemove
Conflicts:
	doc/templates.mdwn
2010-04-23 16:43:44 -04:00
Joey Hess 6486452e4c special case for page.tmpl dependency handling
Rather than wasting resources recording that every page depends on
page.tmpl, add a special case. The special case curretly rebuilds non-page
files too when page.tmpl changes, but that's minor.
2010-04-23 16:41:07 -04:00
Joey Hess 8d72e3dc09 add myclean 2010-04-23 16:40:42 -04:00
Joey Hess 96c9c8aa92 fix return of tpage 2010-04-23 16:20:02 -04:00
Joey Hess 7e79da7633 template docu reorg
Remove wikitemplates page; fold its contents into templates page.
Update all backlinks. Document new ability to put templates inside srcdir.
2010-04-23 16:14:33 -04:00
Joey Hess d822e37d0e move template documentation to the template directive
allow new templates to be created via the inline that lists them
(cherry picked from commit 83703d2f4a)
2010-04-23 15:33:32 -04:00
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 796ece2a8a response 2010-04-23 13:30:52 -04:00
Joey Hess a45f31ae03 Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info 2010-04-23 13:28:49 -04:00
privat 53c8bf9ed9 multiple_sidebars in a gitbranch 2010-04-23 17:28:38 +00:00
Jon Dowland 92c927cb92 half-formed thought about accessible profiling 2010-04-23 18:28:20 +01:00
privat 4afe2d1170 add my repository in the list 2010-04-23 17:20:51 +00:00
Joey Hess e779098796 update copyright years 2010-04-23 12:35:23 -04:00
Jon Dowland f5466ad717 how important is perl 5.10? 2010-04-23 16:29:05 +01:00
Joey Hess aaf1d98ebe better fix for use lib issue
PER5LIB does not override fully, so need to run .in versions
2010-04-22 23:14:57 -04:00
Joey Hess 5bc7efab7c switch to PERL5LIB so that use lib inserted for INSTALL_BASE is overridden during build 2010-04-22 23:00:33 -04:00
Joey Hess 83dc7d2574 Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info 2010-04-22 22:59:06 -04:00
blipvert a2feb7d477 rename bugs/creating_build_fails_oddly_when_older_ikiwiki_is_installed.mdwn to bugs/build_fails_oddly_when_older_ikiwiki_is_installed.mdwn 2010-04-23 02:40:36 +00:00
blipvert 898fc10955 2010-04-23 02:36:27 +00:00
Joey Hess 2cd92fcb22 use meta title 2010-04-22 20:13:47 -04:00
Joey Hess 4c99904af3 reference my branch for this 2010-04-22 16:29:49 -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