mercurial/help/config.txt
changeset 18652 a5e94bee77ed
parent 18642 a40d608e2a7b
parent 18628 52305554fd6e
child 18734 b72697653306
equal deleted inserted replaced
18648:76b69cccb07a 18652:a5e94bee77ed
  1461     Which template map style to use.
  1461     Which template map style to use.
  1462 
  1462 
  1463 ``templates``
  1463 ``templates``
  1464     Where to find the HTML templates. Default is install path.
  1464     Where to find the HTML templates. Default is install path.
  1465 
  1465 
       
  1466 ``websub``
       
  1467 ----------
       
  1468 
       
  1469 Web substitution filter definition. You can use this section to
       
  1470 define a set of regular expression substitution patterns which
       
  1471 let you automatically modify the hgweb server output.
       
  1472 
       
  1473 The default hgweb templates only apply these substitution patterns
       
  1474 on the revision description fields. You can apply them anywhere
       
  1475 you want when you create your own templates by adding calls to the
       
  1476 "websub" filter (usually after calling the "escape" filter).
       
  1477 
       
  1478 This can be used, for example, to convert issue references to links
       
  1479 to your issue tracker, or to convert "markdown-like" syntax into
       
  1480 HTML (see the examples below).
       
  1481 
       
  1482 Each entry in this section names a substitution filter.
       
  1483 The value of each entry defines the substitution expression itself.
       
  1484 The websub expressions follow the old interhg extension syntax,
       
  1485 which in turn imitates the Unix sed replacement syntax::
       
  1486 
       
  1487     pattername = s/SEARCH_REGEX/REPLACE_EXPRESSION/[i]
       
  1488 
       
  1489 You can use any separator other than "/". The final "i" is optional
       
  1490 and indicates that the search must be case insensitive.
       
  1491 
       
  1492 Examples::
       
  1493 
       
  1494     [websub]
       
  1495     issues = s|issue(\d+)|<a href="http://bts.example.org/issue\1">issue\1</a>|i
       
  1496     italic = s/\b_(\S+)_\b/<i>\1<\/i>/
       
  1497     bold = s/\*\b(\S+)\b\*/<b>\1<\/b>/
       
  1498 
  1466 ``worker``
  1499 ``worker``
  1467 ----------
  1500 ----------
  1468 
  1501 
  1469 Parallel master/worker configuration. We currently perform working
  1502 Parallel master/worker configuration. We currently perform working
  1470 directory updates in parallel on Unix-like systems, which greatly
  1503 directory updates in parallel on Unix-like systems, which greatly