| Commit message (Expand) | Author | Age |
... | |
* | | fix return of tpage | Joey Hess | 2010-04-23 |
* | | template docu reorg•••Remove wikitemplates page; fold its contents into templates page.
Update all backlinks. Document new ability to put templates inside srcdir.
| Joey Hess | 2010-04-23 |
* | | move template documentation to the template directive•••allow new templates to be created via the inline that lists them
| Joey Hess | 2010-04-23 |
* | | update | Joey Hess | 2010-04-23 |
* | | use template() rather than rolling it by hand | Joey Hess | 2010-04-23 |
* | | allow template pages to not be under templates/ | Joey Hess | 2010-04-23 |
* | | improved error message | Joey Hess | 2010-04-23 |
* | | switch to using template_depends•••It now handles all the details of finding a page template that this used to
need to implement.
| Joey Hess | 2010-04-23 |
* | | use same error string as template.pm does | Joey Hess | 2010-04-23 |
* | | allow a bare page name to be specified as a template | Joey Hess | 2010-04-23 |
* | | fix logic | Joey Hess | 2010-04-23 |
* | | add | Joey Hess | 2010-04-22 |
* | | refactor to remove template_params•••template_file will be kept separate, since it needs to be memoized
| Joey Hess | 2010-04-22 |
* | | 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.
| Joey Hess | 2010-04-22 |
* | | remove add_templates option•••Templates are moving into the srcdir, and will also be searched for in
configured underlays, so this is redundant.
| Joey Hess | 2010-04-22 |
* | | clarify | Joey Hess | 2010-04-22 |
|/ |
|
* | add | Joey Hess | 2010-04-22 |
* | only remove page from influences when influences are not static•••This matches what add_depends done
| Joey Hess | 2010-04-22 |
* | update | Joey Hess | 2010-04-22 |
* | update | Joey Hess | 2010-04-22 |
* | format | Joey Hess | 2010-04-22 |
* | Merge branch 'autotag' | Joey Hess | 2010-04-22 |
|\ |
|
| * | update | Joey Hess | 2010-04-21 |
| * | turn on tag_autocreate by default if tagbase is set | Joey Hess | 2010-04-21 |
| * | Merge branch 'master' into autotag | Joey Hess | 2010-04-21 |
| |\ |
|
| * \ | Merge branch 'master' into autotag•••Conflicts:
IkiWiki/Plugin/tag.pm
| Joey Hess | 2010-04-21 |
| |\ \ |
|
| * | | | fixes | Joey Hess | 2010-04-21 |
| * | | | clarify | Joey Hess | 2010-04-21 |
| * | | | Merge branch 'master' into autotag•••Conflicts:
IkiWiki/Plugin/tag.pm
| Joey Hess | 2010-04-21 |
| |\ \ \ |
|
| * | | | | add separate template variable for tag page and sanitize displayed tag name | Joey Hess | 2010-04-21 |
| * | | | | 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.
| Joey Hess | 2010-04-21 |
| * | | | | commit autocreated tag pages | Joey Hess | 2010-04-21 |
| * | | | | remember autofiles always•••This fixes the problem that it did not remember if an autofile is deleted,
unless a plugin happened to register the autofile at the same time.
With the new code, we just never recreate an autofile more than once.
Only downside is that the list of autofiles is never pruned either.
And I don't really see a way to prune it.
| Joey Hess | 2010-04-21 |
| * | | | | bugfixes | Joey Hess | 2010-04-21 |
| * | | | | Merge branch 'master' into autotag | Joey Hess | 2010-04-21 |
| |\ \ \ \ |
|
| * | | | | | document tag_autocreate | Joey Hess | 2010-04-21 |
| * | | | | | remove verify_src_file•••Splitting out this function bothered me. It is conceptially similar to
file_pruned, and yet also very specific to exactly the security needs of
find_src_files.
I liked that it got rid of duplicate code in the latter function. So
instead, put a helper sub in that, which I think allows refactoring
things more cleanly, and with less boilerplate.
As to the needs of gen_autofile, I'm not convinced this needs to handle
the same set of problems that verify_src_file did. So I sat down and
wrote a custom validator for autofiles, which turned out to seem to just
need three things: Make sure the candidate filename is not something
that would be pruned; untaint the candidate filename; and make sure that
srcdir doesn't already have something with its name. (Plus, of course,
all the other checks that were already in gen_autofile.)
(In passing, also fixed a bunch of bugs I had introduced in this branch.)
| Joey Hess | 2010-04-21 |
| * | | | | | add_autofile filename should be relative to srcdir | Joey Hess | 2010-04-21 |
| * | | | | | Merge branch 'master' into autotag | Joey Hess | 2010-04-21 |
| |\ \ \ \ \ |
|
| * \ \ \ \ \ | Merge branch 'master' into autotag | Joey Hess | 2010-04-20 |
| |\ \ \ \ \ \ |
|
| * | | | | | | | improve docs | Joey Hess | 2010-04-17 |
| * | | | | | | | move File::Find control back into its code blocks•••Ok, this is longer, but features less scary action at a distance.
| Joey Hess | 2010-04-17 |
| * | | | | | | | move decode_utf8 closer to reason for it•••Filenames need to be decoded, as File::Find does not provide them in
decoded form, but other callers of verify_src_file will be using utf8.
| Joey Hess | 2010-04-17 |
| * | | | | | | | fix autotag behavior for relative tags•••A tag like ./foo is searched for relative to the tagging page.
However, if multiple pages use such a tag, the only one sure
to be in common is in the root, so autocreate it there to
avoid scattering redunadant autocreated tags around the tree.
(This is probably not ideal.)
Also renamed the tagpage and taglink functions for clarity.
| Joey Hess | 2010-04-17 |
| * | | | | | | | call gentag for taglinks too | Joey Hess | 2010-04-17 |
| * | | | | | | | fix autofile call | Joey Hess | 2010-04-17 |
| * | | | | | | | tag_autocreate fixups•••Fix style of prompt.
Optional to rebuild when it is changed. (Needed to get new all missing tags)
| Joey Hess | 2010-04-17 |
| * | | | | | | | document add_autofile | Joey Hess | 2010-04-17 |
| * | | | | | | | refactor autofiles•••Made add_autofile take a generator function, and just register the
autofile, for later possible creation. The testing is moved into Render,
which allows cleaning up some stuff.
| Joey Hess | 2010-04-17 |
| * | | | | | | | whitespace | Joey Hess | 2010-04-17 |