trace of match_ispage/pagetype
parent
4689c77dc9
commit
406adf692a
|
@ -31,3 +31,14 @@ The second is empty. Expected behaviour:
|
||||||
(with [[plugins/txt]] not enabled)
|
(with [[plugins/txt]] not enabled)
|
||||||
|
|
||||||
*— [[Jon]], 2023-09-06*
|
*— [[Jon]], 2023-09-06*
|
||||||
|
|
||||||
|
> here's a trace of what happens to `ispage()` when applied to the above example.
|
||||||
|
>
|
||||||
|
> * `match_ispage` gets called with argument "a/foo"
|
||||||
|
> * it calls `Ikiwiki::pagetype` with that argument unmodified
|
||||||
|
> * the first branch checks for a period, so fails
|
||||||
|
> * base is calculated to be "foo"
|
||||||
|
> * the next branch fails as $hooks{htmlize}{foo} is false
|
||||||
|
> * the function returns undefined.
|
||||||
|
>
|
||||||
|
> *— [[Jon]], 2023-09-06*
|
||||||
|
|
Loading…
Reference in New Issue