]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/po:_avoid_rebuilding_to_fix_meta_titles.mdwn
eventually got rid of the double rebuild issue. please have a look.
[ikiwiki.git] / doc / todo / po:_avoid_rebuilding_to_fix_meta_titles.mdwn
1 Re the meta title escaping issue worked around by `change`. 
2
3 >   I suppose this does not only affect meta, but other things
4 >   at scan time too. Also, handling it only on rebuild feels
5 >   suspicious -- a refresh could involve changes to multiple
6 >   pages and trigger the same problem, I think. Also, exposing
7 >   this rebuild to the user seems really ugly, not confidence inducing.
8 >   
9 >   So I wonder if there's a better way. Such as making po, at scan time,
10 >   re-run the scan hooks, passing them modified content (either converted
11 >   from po to mdwn or with the escaped stuff cheaply de-escaped). (Of
12 >   course the scan hook would need to avoid calling itself!)
13
14 >   (This doesn't need to block the merge, but I hope it can be addressed
15 >   eventually..)
16 >  
17 > --[[Joey]] 
18 >> 
19 >> I'll think about it soon.
20 >> 
21 >> --[[intrigeri]]
22 >>
23 >>> Did you get a chance to? --[[Joey]] 
24
25 >>>> I eventually did, and got rid of the ugly double rebuild of pages
26 >>>> at build time. This involved adding a `rescan` hook. Rationale
27 >>>> and details are in my po branch commit messages. I believe this
28 >>>> new way of handling meta title escaping to be far more robust.
29 >>>> Moreover this new implementation is more generic, feels more
30 >>>> logical to me, and probably fixes other similar bugs outside the
31 >>>> meta plugin scope. Please have a look when you can.
32 >>>> --[[intrigeri]]